ManagedLinearAlgebraOperationsOfSingle.Copy Method

Definition

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

Overload List

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

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

Parameters

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

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

Parameters

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

Copies the specified elements of a complex matrix.
C#
public override void Copy(
	MatrixTriangle storedTriangle,
	int m,
	int n,
	Array2D<Complex<float>> a,
	Array2D<Complex<float>> 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<Single>>
A complex array that contains the data for the source matrix.
b  Array2D<Complex<Single>>
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<Single>, Array2D<Single>)

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<float> a,
	Array2D<float> 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<Single>
            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<Single>
            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