Workaround: push! to a flattened vector, then reshape and transpose.
On Wednesday, May 28, 2014 1:46:19 PM UTC-5, Dahua Lin wrote: > > I don't think Julia allows pushing a row/column to a matrix. > > Arrays of order 2 or higher are non-resizable. > > > On Wednesday, May 28, 2014 12:52:13 PM UTC-5, Patrick O'Leary wrote: >> >> You should be able to use push!() for this. Are you getting a segfault >> from some Julia code? If so, that shouldn't be happening. >> >> On Wednesday, May 28, 2014 9:17:18 AM UTC-5, Alexander Dubbs wrote: >>> >>> I'm making a matrix Y. I know its width but not its height. I want to >>> keep adding horizontal vectors to it without it segfaulting. What is the >>> Julia way to do this? >>> >>
