LinearAlgebraOperations<T>.Copy Method

Definition

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

Overload List

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

Copies a vector, x, to a vector, y.

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

Copies a vector, x, to a vector, y.

Copy(Int32, ReadOnlySpanSlice<Complex<T>>, SpanSlice<Complex<T>>)

Copies a vector, x, to a vector, y.

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

Copies a vector, x, to a vector, y.

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

Copies a vector, x, incx, to a vector, y, incy.

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

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

Copy(MatrixTriangle, Int32, Int32, Array2D<Complex<T>>, Array2D<Complex<T>>) Copies the specified elements of a complex matrix.
Copy(MatrixTriangle, Int32, Int32, ReadOnlySpan2D<Complex<T>>, Span2D<Complex<T>>) Copies the specified elements of a complex matrix.
Copy(MatrixTriangle, Int32, Int32, ReadOnlySpan<T>, Int32, Span<T>, Int32)

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

Copy(MatrixTriangle, Int32, Int32, ReadOnlySpan<Complex<T>>, Int32, Span<Complex<T>>, Int32) Copies the specified elements of a complex matrix.

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

Copies a vector, x, to a vector, y.

C#
public void Copy(
	int n,
	ArraySlice<T> x,
	ArraySlice<T> y
)

Parameters

n  Int32
 
x  ArraySlice<T>
 
y  ArraySlice<T>
 

Remarks

            uses unrolled loops for increments equal to one.
            

Further Details:

            jack dongarra, linpack, 3/11/78.
            modified 12/3/93, array(1) declarations changed to array(*)
            

Authors: Univ. of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver, NAG Ltd.

Date: November 2011

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

Copies a vector, x, to a vector, y.

C#
public void Copy(
	int n,
	ArraySlice<Complex<T>> x,
	ArraySlice<Complex<T>> y
)

Parameters

n  Int32
 
x  ArraySlice<Complex<T>>
 
y  ArraySlice<Complex<T>>
 

Remarks

Further Details:

            jack dongarra, linpack, 4/11/78.
            modified 12/3/93, array(1) declarations changed to array(*)
            

Authors: Univ. of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver, NAG Ltd.

Date: November 2011

Copy(Int32, ReadOnlySpanSlice<Complex<T>>, SpanSlice<Complex<T>>)

Copies a vector, x, to a vector, y.

C#
public void Copy(
	int n,
	ReadOnlySpanSlice<Complex<T>> x,
	SpanSlice<Complex<T>> y
)

Parameters

n  Int32
 
x  ReadOnlySpanSlice<Complex<T>>
 
y  SpanSlice<Complex<T>>
 

Remarks

Further Details:

            jack dongarra, linpack, 4/11/78.
            modified 12/3/93, array(1) declarations changed to array(*)
            

Authors: Univ. of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver, NAG Ltd.

Date: November 2011

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

Copies a vector, x, to a vector, y.

C#
public virtual void Copy(
	int n,
	ReadOnlySpan<T> x,
	int incx,
	Span<T> y,
	int incy
)

Parameters

n  Int32
 
x  ReadOnlySpan<T>
 
incx  Int32
 
y  Span<T>
 
incy  Int32
 

Implements

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

Remarks

            uses unrolled loops for increments equal to one.
            

Further Details:

            jack dongarra, linpack, 3/11/78.
            modified 12/3/93, array(1) declarations changed to array(*)
            

Authors: Univ. of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver, NAG Ltd.

Date: November 2011

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

Copies a vector, x, incx, to a vector, y, incy.

C#
public abstract void Copy(
	int n,
	ReadOnlySpan<Complex<T>> zx,
	int incx,
	Span<Complex<T>> zy,
	int incy
)

Parameters

n  Int32
 
zx  ReadOnlySpan<Complex<T>>
 
incx  Int32
 
zy  Span<Complex<T>>
 
incy  Int32
 

Implements

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

Remarks

Further Details:

            jack dongarra, linpack, 4/11/78.
            modified 12/3/93, array(1) declarations changed to array(*)
            

Authors: Univ. of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver, NAG Ltd.

Date: November 2011

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

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

C#
public void Copy(
	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).
            

Remarks

This method corresponds to the LAPACK routine DLACPY.

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

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

Copy(MatrixTriangle, Int32, Int32, ReadOnlySpan2D<Complex<T>>, Span2D<Complex<T>>)

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

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

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

C#
public virtual void Copy(
	MatrixTriangle storedTriangle,
	int m,
	int n,
	ReadOnlySpan<T> a,
	int lda,
	Span<T> b,
	int ldb
)

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  ReadOnlySpan<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.
            
lda  Int32
            The leading dimension of the array A.  LDA >= max(1,M).
            
b  Span<T>
            Dimension (LDB,N)
            On exit, B = A in the locations specified by UPLO.
            
ldb  Int32
            The leading dimension of the array B.  LDB >= max(1,M).
            

Implements

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

Remarks

This method corresponds to the LAPACK routine DLACPY.

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

Copies the specified elements of a complex matrix.
C#
public virtual void Copy(
	MatrixTriangle storedTriangle,
	int m,
	int n,
	ReadOnlySpan<Complex<T>> a,
	int lda,
	Span<Complex<T>> b,
	int ldb
)

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  ReadOnlySpan<Complex<T>>
A complex array that contains the data for the source matrix.
lda  Int32
The leading dimension of the matrix a.
b  Span<Complex<T>>
A complex array that contains the data for the destination matrix.
ldb  Int32
The leading dimension of the matrix b.

Implements

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

See Also