fossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 2 years agoExplain yourselves, comp sci.mander.xyzimagemessage-square71linkfedilinkarrow-up1520arrow-down117
arrow-up1503arrow-down1imageExplain yourselves, comp sci.mander.xyzfossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 2 years agomessage-square71linkfedilink
minus-squareyetiftw@lemmy.worldlinkfedilinkEnglisharrow-up4·2 years agomatlab likes to pick the smallest available spot in memory to store a list, so for loops that increase the size of a matrix it’s recommended to preallocate the space using a matrix full of zeros!
matlab likes to pick the smallest available spot in memory to store a list, so for loops that increase the size of a matrix it’s recommended to preallocate the space using a matrix full of zeros!