ILinearAlgebraOperations<T>.Copy Method

Definition

Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

Overload List

Copy(Int32, ReadOnlySpan<T>, Int32, Span<T>, Int32)

Copies a vector.
C#
void Copy(
	int n,
	ReadOnlySpan<T> x,
	int incx,
	Span<T> y,
	int incy
)

Parameters

n  Int32
The number of elements in the vectors x and y.
x  ReadOnlySpan<T>
A span containing the elements of the vector x.
incx  Int32
The distance between elements in x.
y  Span<T>
A span containing the elements of the vector y. The elements of y are overwritten with the elements of x.
incy  Int32
The distance between elements in y.

Copy(MatrixTriangle, Int32, Int32, ReadOnlySpan<T>, Int32, Span<T>, Int32)

Copies part of a matrix to another.
C#
void Copy(
	MatrixTriangle storedTriangle,
	int m,
	int n,
	ReadOnlySpan<T> a,
	int lda,
	Span<T> b,
	int ldb
)

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  ReadOnlySpan<T>
T array specifying the m-by-n source matrix.
lda  Int32
The leading dimension of the matrix a.
b  Span<T>
T array specifying the m-by-n destination matrix.
ldb  Int32
The leading dimension of the matrix b.

Remarks

This method corresponds to the LAPACK routine ?LACPY.

See Also