Fork me on GitHub
#uncomplicate
<
2018-04-18
>
matan12:04:33

How would I write vectors into a neanderthal matrix?

matan12:04:42

I am reading them from a text file... my matrix should be a dense matrix sized ~500,000 over 300 (a word embedding, which I'm loading from a file)

matan12:04:44

also, I'm not seeing where to use or require float-factory from. oh, float-factory is just a documentation error, it is now native-float isn't it.

matan12:04:15

could you kindly suggest something? I tend to think I should initialize it in one shot, hoping that mapcating the file's lines into the neanderthal matrix initialization would not materialize the entire file in memory. I have found for getting a vector of a matrix, but not for setting it. Anything more efficient than using alter!? Is multiplication with an extremely sparse matrix the way to write specific vectors into/from the matrix?? or is there anything more direct? how bad do you think would it be building and using a sparse "selection matrix" for updating/extracting specific rows?