3 ms·
Interesting. Does it result in a compile error if you try arrays of different sizes? (If it's just a run time error, I don't see how it's different to implement
by the_af 7y ago
Interesting. Does it result in a compile error if you try arrays of different sizes? (If it's just a run time error, I don't see how it's different to implementing this with operator overloading in any language that supports it).
- palae 7y agoSure, if you try with non conformable arrays, gfortran for example would tell you something like this: Different shape for array assignment at (1) on dimension 1 Note that a scalar is conformable to any array, so that A = 2 for example would work for any shape of A, and would fill A with 2's.