Java zero matrix memory usage -
Java zero matrix memory usage -
i have been struggling understand next question.
is zero-matrix memory efficient? zero-matrix cost less memory (or not cost memory)?
i tried verify in java turns out memory has been allocated specified size.
i not sure c/c++ or other language matlab , octave , how manage matrix , vector memory;
the reason why asking want build sparse matrix huge size, of entries zeros, turns out java not choice, because zero-matrix in java still cost much memory. 1 have experience problem? not sure how deal it, help appreciated.
thanks
straightforward zero-filled matrix cost in language: amount allocated not depend on numbers fill with.
take @ e.g. ujmp provides sparse matrices support, , many algorithms. other implementations exist.
in general, if find hard implement useful, google open-source libraries. chances many wheels have been invented already.
java
Comments
Post a Comment