Marcel-Rodekamp / NSL

Nanosystem Simulation Library (NSL) implements statistical simulations for systems on the nanoscale
Other
2 stars 0 forks source link

assignment behaviour #82

Closed Marcel-Rodekamp closed 1 year ago

Marcel-Rodekamp commented 2 years ago

There are two different behaviors of the assignment operator:

NSL::Tensor<type> A(2);
NSL::Tensor<type> B = A; // shallow copy
NSL::Tensor<type> B;
B = A; // deep copy

clarify this! It should behave similarly!

Marcel-Rodekamp commented 2 years ago

It is not a bug but rather a desired behavior see PR #111.