Matrix.Extract Triangular Banded Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Extract | Constructs a new upper or lower band matrix from the components of a triangular matrix. |
Extract | Constructs a new upper or lower band matrix from the components of a triangular matrix. |
ExtractTriangularBanded<T>(TriangularMatrix<T>, MatrixTriangle, Int32, MatrixDiagonal)
Constructs a new upper or lower band matrix from the components of a triangular matrix.
public static BandMatrix<T> ExtractTriangularBanded<T>(
TriangularMatrix<T> matrix,
MatrixTriangle storedTriangle,
int bandwidth,
MatrixDiagonal unitDiagonal
)
Parameters
- matrix TriangularMatrix<T>
- The matrix that supplies the components.
- storedTriangle MatrixTriangle
- A MatrixTriangle value that specifies whether to construct an upper or a lower triangular matrix.
- bandwidth Int32
- The bandwidth of the BandMatrix<T>.
- unitDiagonal MatrixDiagonal
- If true, the matrix is unit triangular. Only the elements below the diagonal in matrix are considered. If false, the diagonal elements of matrix are taken as the diagonal elements of the triangular matrix.
Type Parameters
- T
Return Value
BandMatrix<T>A BandMatrix<T> with the same components as matrix with lower and upper bandwidth equal to bandwidth.
ExtractTriangularBanded<T>(Matrix<T>, MatrixTriangle, Int32, MatrixDiagonal, Intent)
Constructs a new upper or lower band matrix from the components of a triangular matrix.
public static BandMatrix<T> ExtractTriangularBanded<T>(
Matrix<T> matrix,
MatrixTriangle storedTriangle,
int bandwidth,
MatrixDiagonal unitDiagonal,
Intent intent
)
Parameters
- matrix Matrix<T>
- The matrix that supplies the components.
- storedTriangle MatrixTriangle
- A MatrixTriangle value that specifies whether to construct an upper or a lower triangular matrix.
- bandwidth Int32
- The bandwidth of the BandMatrix<T>.
- unitDiagonal MatrixDiagonal
- If true, the matrix is unit triangular. Only the elements below the diagonal in matrix are considered. If false, the diagonal elements of matrix are taken as the diagonal elements of the triangular matrix.
- intent Intent
- An Intent value that specifies the intended use of the extracted BandMatrix<T>.
Type Parameters
- T
Return Value
BandMatrix<T>A BandMatrix<T> with the same components as matrix with upper and lower bandwidth equal to bandwidth.