Home > Extreme Optimization Mathematics Library for .NET > Reference > Extreme.Mathematics.LinearAlgebra Namespace > Matrix Class > Methods


Extreme Optimization Mathematics Library for .NET

Matrix.CopyTo Method 

Copies the components of this Matrix to another matrix.

[Visual Basic]
Overridable Public Function CopyTo( _
   ByVal matrix As Matrix _
) As Matrix
[C#]
public virtual Matrix CopyTo(
   Matrix matrix
);

Parameters

matrix
The Matrix whose components are to be set.

Return Value

A reference to the destination matrix.

Exceptions

Exception TypeCondition
ArgumentNullExceptionmatrix is a null reference (Nothing in Visual Basic).
DimensionMismatchExceptionThe number of rows of matrix is less than the number of rows of this instance.

-or-

The number of columns of matrix1 is less than the number of columns of this instance.

See Also

Matrix Class | Extreme.Mathematics.LinearAlgebra Namespace