ILinearAlgebraOperations<T, TVector, TMatrix>.Copy Method

Definition

Namespace: Extreme.Mathematics.LinearAlgebra.Implementation
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Copy(Int32, TVector, TVector) Copies a vector.
Copy(MatrixTriangle, Int32, Int32, TMatrix, TMatrix) Copies part of a matrix to another.

Copy(Int32, TVector, TVector)

Copies a vector.
C#
void Copy(
	int n,
	TVector x,
	TVector y
)

Parameters

n  Int32
The number of elements in the vectors x and y.
x  TVector
A reference to a one-dimensional array containing the elements of the vector x.
y  TVector
A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the elements of x.

Copy(MatrixTriangle, Int32, Int32, TMatrix, TMatrix)

Copies part of a matrix to another.
C#
void Copy(
	MatrixTriangle storedTriangle,
	int m,
	int n,
	TMatrix a,
	TMatrix b
)

Parameters

storedTriangle  MatrixTriangle
A MatrixTriangle value that specifies which part of the matrix to copy.
m  Int32
An integer specifying the number of rows of the matrix a. Must be greater than or equal to zero.
n  Int32
An integer specifying the number of columns of the matrix a. Must be greater than or equal to zero.
a  TMatrix
T array specifying the m-by-n source matrix.
b  TMatrix
T array specifying the m-by-n destination matrix.

Remarks

This method corresponds to the LAPACK routine ?LACPY.

See Also