Quantcast
Channel: Math.NET Numerics - Math.NET
Viewing all articles
Browse latest Browse all 224

Assignment "=" Operator with Matrices

$
0
0

@JMcCabe wrote:

It appears that the assignment operator with MathNet linear algebra is functionally different from the standard C# assignment operator. It seems with MathNet, if you say 'matrix1 = matrix2', it assigns the same reference/address to both matrices, rather than simply copying the contents of one to the other at a different reference/address/location. Hence the inclusion of a '.CopyTo' method.

Anyone know the reasoning for that? Just curious.

Thanks.

Posts: 6

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 224

Trending Articles