5 ms·
Matlab is one language that chooses the second. Every assignment a=b where b is a matrix creates a distinct copy of the matrix. The interpreter is slightly mor
by karelpeeters 2y ago
Matlab is one language that chooses the second. Every assignment a=b where b is a matrix creates a distinct copy of the matrix.
The interpreter is slightly more clever and instead implements this as a copy-on-writr mechanism, but that's just an implementation detail .