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

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -