LinearAlgebraOperationsExtensions.Copy<T>(ILinearAlgebraOperations<T>, MatrixTriangle, Int32, Int32, ReadOnlySpan2D<T>, Span2D<T>) Method

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

Definition

Namespace: Extreme.Collections
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 9.0.0
C#
public static void Copy<T>(
	this ILinearAlgebraOperations<T> operations,
	MatrixTriangle storedTriangle,
	int m,
	int n,
	ReadOnlySpan2D<T> a,
	Span2D<T> b
)

Parameters

operations  ILinearAlgebraOperations<T>
 
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  ReadOnlySpan2D<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  Span2D<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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILinearAlgebraOperations<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

This method corresponds to the LAPACK routine DLACPY.

See Also