Copies the elements of this vector to another matrix, if it exists;
otherwise clones the matrix using the specified method.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public Matrix<T> CopyToOrClone(
Matrix<T> destination,
CloningMethod method
)
Public Function CopyToOrClone (
destination As Matrix(Of T),
method As CloningMethod
) As Matrix(Of T)
public:
Matrix<T>^ CopyToOrClone(
Matrix<T>^ destination,
CloningMethod method
)
member CopyToOrClone :
destination : Matrix<'T> *
method : CloningMethod -> Matrix<'T>
Parameters
- destination
- Type: Extreme.MathematicsMatrixT
A matrix whose
elements are to be set. - method
- Type: Extreme.Mathematics.LinearAlgebraCloningMethod
A CloningMethod that specifies how
the matrix should be cloned if destination is
.
Return Value
Type:
MatrixTA reference to the destination matrix.
Exception | Condition |
---|
ArgumentException |
The length of destination is less than the length of this instance.
|
Reference