ILinearAlgebraOperations<T>.Copy Method

Definition

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

Overload List

Copy(Int32, ArraySlice<T>, ArraySlice<T>)

Copies a vector.
C#
void Copy(
	int n,
	ArraySlice<T> x,
	ArraySlice<T> y
)

Parameters

n  Int32
The number of elements in the vectors x and y.
x  ArraySlice<T>
A reference to a one-dimensional array containing the elements of the vector x.
y  ArraySlice<T>
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, Array2D<T>, Array2D<T>)

Copies part of a matrix to another.
C#
void Copy(
	MatrixTriangle storedTriangle,
	int m,
	int n,
	Array2D<T> a,
	Array2D<T> 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  Array2D<T>
T array specifying the m-by-n source matrix.
b  Array2D<T>
T array specifying the m-by-n destination matrix.

Remarks

This method corresponds to the LAPACK routine ?LACPY.

See Also