LinearAlgebraOperations.Copy Method

Definition

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

Overload List

Copy<T>(Int32, ArraySlice<T>, ArraySlice<T>) Copies a vector.
Copy<T>(MatrixTriangle, Int32, Int32, Array2D<T>, Array2D<T>)

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

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

Copies a vector.
C#
public static void Copy<T>(
	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.

Type Parameters

T

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

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

C#
public static void Copy<T>(
	MatrixTriangle storedTriangle,
	int m,
	int n,
	Array2D<T> a,
	Array2D<T> b
)

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  Array2D<T>
            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  Array2D<T>
            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

Remarks

This method corresponds to the LAPACK routine DLACPY.

See Also