LinearAlgebraOperations.Copy Method

Definition

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

Overload List

Copy<T, TStorage>(Int32, TStorage, TStorage) Copies a vector.
Copy<T, TStorage2D>(MatrixTriangle, Int32, Int32, TStorage2D, TStorage2D)

Copies all or part of a two-dimensional matrix A to another matrix B.

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

Copies a vector.
C#
public static void Copy<T, TStorage>(
	int n,
	TStorage x,
	TStorage y
)
where TStorage : Object, IStorageSlice<T>

Parameters

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

Type Parameters

T
TStorage

Copy<T, TStorage2D>(MatrixTriangle, Int32, Int32, TStorage2D, TStorage2D)

Copies all or part of a two-dimensional matrix A to another matrix B.

C#
public static void Copy<T, TStorage2D>(
	MatrixTriangle storedTriangle,
	int m,
	int n,
	TStorage2D a,
	TStorage2D b
)
where TStorage2D : Object, IStorage2D<T>

Parameters

storedTriangle  MatrixTriangle
            Specifies the part of the matrix A to be copied to B.
            = 'U':      Upper triangular part
            = 'L':      Lower triangular part
            Otherwise:  All of the matrix A
            
m  Int32
            The number of rows of the matrix A.  M >= 0.
            
n  Int32
            The number of columns of the matrix A.  N >= 0.
            
a  TStorage2D
            Dimension (LDA,N)
            The m by n matrix A.  If UPLO = 'U', only the upper triangle
            or trapezoid is accessed; if UPLO = 'L', only the lower
            triangle or trapezoid is accessed.
            
            The leading dimension of the array A.  LDA >= max(1,M).
            
b  TStorage2D
            Dimension (LDB,N)
            On exit, B = A in the locations specified by UPLO.
            
            The leading dimension of the array B.  LDB >= max(1,M).
            

Type Parameters

T
TStorage2D

Remarks

This method corresponds to the LAPACK routine DLACPY.

See Also