ManagedLinearAlgebraOperations.Copy Method

Definition

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

Overload List

Copy(Int32, ArraySlice<Complex<Double>>, ArraySlice<Complex<Double>>)

Copies a vector.
C#
public override void Copy(
	int n,
	ArraySlice<Complex<double>> x,
	ArraySlice<Complex<double>> y
)

Parameters

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

Implements

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

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

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

Parameters

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

Implements

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

Copy(MatrixTriangle, Int32, Int32, Array2D<Complex<Double>>, Array2D<Complex<Double>>)

Copies the specified elements of a complex matrix.
C#
public override void Copy(
	MatrixTriangle storedTriangle,
	int m,
	int n,
	Array2D<Complex<double>> a,
	Array2D<Complex<double>> b
)

Parameters

storedTriangle  MatrixTriangle
A MatrixTriangle value that specifies which part of the matrix should be copied.
m  Int32
The number of rows of the matrices.
n  Int32
The number of columns of the matrices.
a  Array2D<Complex<Double>>
A complex array that contains the data for the source matrix.
b  Array2D<Complex<Double>>
A complex array that contains the data for the destination matrix.

Implements

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

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

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

C#
public override void Copy(
	MatrixTriangle storedTriangle,
	int m,
	int n,
	Array2D<double> a,
	Array2D<double> 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<Double>
            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<Double>
            Dimension (LDB,N)
            On exit, B = A in the locations specified by UPLO.
            
            The leading dimension of the array B.  LDB >= max(1,M).
            

Implements

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

Remarks

This method corresponds to the LAPACK routine DLACPY.

See Also