Alexy Khrabrov wrote:
> I've read in Phil Spector's new book that it's a good idea to
> preallocate a big matrix, like
>
> u <- matrix(0,nrow,ncol) # (1)
>
> Now, I read contents of a huge matrix from a Fortran binary dump.
>
> u <- readBin(con,what="double",n=nrow*ncol) # (2)
>
> If I do (
I've read in Phil Spector's new book that it's a good idea to
preallocate a big matrix, like
u <- matrix(0,nrow,ncol) # (1)
Now, I read contents of a huge matrix from a Fortran binary dump.
u <- readBin(con,what="double",n=nrow*ncol) # (2)
If I do (1) and then (2), u is a vector, obviously it
2 matches
Mail list logo