Sparse Linear Algebra Operations<T>.Triangular Solve Method
Definition
Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
TriangularSolve(TransposeOperation, Int32, T, MatrixStructure, MatrixTriangle, MatrixDiagonal, ReadOnlySpan<T>, ReadOnlySpan<Int32>, ReadOnlySpan<Int32>, ReadOnlySpan<Int32>, ReadOnlySpan<T>, Int32, Span<T>, Int32)
Solves for a dense vector for a sparse matrix in compressed sparse column format.
public abstract void TriangularSolve(
TransposeOperation transA,
int m,
T alpha,
MatrixStructure structure,
MatrixTriangle storedTriangle,
MatrixDiagonal matrixDiagonal,
ReadOnlySpan<T> a,
ReadOnlySpan<int> aRows,
ReadOnlySpan<int> aPointerB,
ReadOnlySpan<int> aPointerE,
ReadOnlySpan<T> x,
int xStride,
Span<T> y,
int yStride
)
Parameters
- transA TransposeOperation
- Specifies the operation to be performed on the matrix a.
- m Int32
- The number of rows in the matrix a.
- alpha T
- The scalar used to multiply the matrix-vector product.
- structure MatrixStructure
- A MatrixStructure value that specifies the structure of the matrix.
- storedTriangle MatrixTriangle
- A MatrixTriangle value that specifies whether the matrix is upper or lower triangular.
- matrixDiagonal MatrixDiagonal
- A MatrixDiagonal value that indicates whether the diagonal elements are all 1 or not.
- a ReadOnlySpan<T>
- A span that contains the elements of the matrix.
- aRows ReadOnlySpan<Int32>
- Integer array that contains the 1-based row indices of the corresponding elements of a.
- aPointerB ReadOnlySpan<Int32>
- Integer array of length m containing the 1-based indices into a of the first component of each column.
- aPointerE ReadOnlySpan<Int32>
- Integer array of length m containing the 1-based indices into a of the first component of each column.
- x ReadOnlySpan<T>
- A reference to a one-dimensional array containing the elements of the vector x.
- xStride Int32
- The distance between successive elements in x.
- y Span<T>
- A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.
- yStride Int32
- The distance between successive elements in y.
Implements
ISparseLinearAlgebraOperations<T>.TriangularSolve(TransposeOperation, Int32, T, MatrixStructure, MatrixTriangle, MatrixDiagonal, ReadOnlySpan<T>, ReadOnlySpan<Int32>, ReadOnlySpan<Int32>, ReadOnlySpan<Int32>, ReadOnlySpan<T>, Int32, Span<T>, Int32)TriangularSolve(TransposeOperation, Int32, Complex<T>, MatrixStructure, MatrixTriangle, MatrixDiagonal, ReadOnlySpan<Complex<T>>, ReadOnlySpan<Int32>, ReadOnlySpan<Int32>, ReadOnlySpan<Int32>, ReadOnlySpan<Complex<T>>, Int32, Span<Complex<T>>, Int32)
Solves for a dense vector for a sparse matrix in compressed sparse column format.
public abstract void TriangularSolve(
TransposeOperation transA,
int m,
Complex<T> alpha,
MatrixStructure structure,
MatrixTriangle storedTriangle,
MatrixDiagonal matrixDiagonal,
ReadOnlySpan<Complex<T>> a,
ReadOnlySpan<int> aRows,
ReadOnlySpan<int> aPointerB,
ReadOnlySpan<int> aPointerE,
ReadOnlySpan<Complex<T>> x,
int xStride,
Span<Complex<T>> y,
int yStride
)
Parameters
- transA TransposeOperation
- Specifies the operation to be performed on the matrix a.
- m Int32
- The number of rows in the matrix a.
- alpha Complex<T>
- The scalar used to multiply the matrix-vector product.
- structure MatrixStructure
- A MatrixStructure value that specifies the structure of the matrix.
- storedTriangle MatrixTriangle
- A MatrixTriangle value that specifies whether the matrix is upper or lower triangular.
- matrixDiagonal MatrixDiagonal
- A MatrixDiagonal value that indicates whether the diagonal elements are all 1 or not.
- a ReadOnlySpan<Complex<T>>
- A span that contains the elements of the matrix.
- aRows ReadOnlySpan<Int32>
- Integer array that contains the 1-based row indices of the corresponding elements of a.
- aPointerB ReadOnlySpan<Int32>
- Integer array of length m containing the 1-based indices into a of the first component of each column.
- aPointerE ReadOnlySpan<Int32>
- Integer array of length m containing the 1-based indices into a of the first component of each column.
- x ReadOnlySpan<Complex<T>>
- A reference to a one-dimensional array containing the elements of the vector x.
- xStride Int32
- The distance between successive elements in x.
- y Span<Complex<T>>
- A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.
- yStride Int32
- The distance between successive elements in y.
Implements
ISparseLinearAlgebraOperations<T>.TriangularSolve(TransposeOperation, Int32, T, MatrixStructure, MatrixTriangle, MatrixDiagonal, ReadOnlySpan<T>, ReadOnlySpan<Int32>, ReadOnlySpan<Int32>, ReadOnlySpan<Int32>, ReadOnlySpan<T>, Int32, Span<T>, Int32)TriangularSolve(TransposeOperation, Int32, Int32, T, MatrixStructure, MatrixTriangle, MatrixDiagonal, ReadOnlySpan<T>, ReadOnlySpan<Int32>, ReadOnlySpan<Int32>, ReadOnlySpan<Int32>, ReadOnlySpan<T>, Int32, Span<T>, Int32)
Solves for a dense vector for a sparse matrix in compressed sparse column format.
public abstract void TriangularSolve(
TransposeOperation transA,
int m,
int n,
T alpha,
MatrixStructure structure,
MatrixTriangle storedTriangle,
MatrixDiagonal matrixDiagonal,
ReadOnlySpan<T> a,
ReadOnlySpan<int> aRows,
ReadOnlySpan<int> aPointerB,
ReadOnlySpan<int> aPointerE,
ReadOnlySpan<T> b,
int ldb,
Span<T> c,
int ldc
)
Parameters
- transA TransposeOperation
- Specifies the operation to be performed on the matrix a.
- m Int32
- The number of rows in the matrix a.
- n Int32
- alpha T
- The scalar used to multiply the matrix-vector product.
- structure MatrixStructure
- A MatrixStructure value that specifies the structure of the matrix.
- storedTriangle MatrixTriangle
- A MatrixTriangle value that specifies whether the matrix is upper or lower triangular.
- matrixDiagonal MatrixDiagonal
- A MatrixDiagonal value that indicates whether the diagonal elements are all 1 or not.
- a ReadOnlySpan<T>
- A span that contains the elements of the matrix.
- aRows ReadOnlySpan<Int32>
- Integer array that contains the 1-based row indices of the corresponding elements of a.
- aPointerB ReadOnlySpan<Int32>
- Integer array of length m containing the 1-based indices into a of the first component of each column.
- aPointerE ReadOnlySpan<Int32>
- Integer array of length m containing the 1-based indices into a of the first component of each column.
- b ReadOnlySpan<T>
- ldb Int32
- c Span<T>
- ldc Int32
Implements
ISparseLinearAlgebraOperations<T>.TriangularSolve(TransposeOperation, Int32, Int32, T, MatrixStructure, MatrixTriangle, MatrixDiagonal, ReadOnlySpan<T>, ReadOnlySpan<Int32>, ReadOnlySpan<Int32>, ReadOnlySpan<Int32>, ReadOnlySpan<T>, Int32, Span<T>, Int32)TriangularSolve(TransposeOperation, Int32, Int32, Complex<T>, MatrixStructure, MatrixTriangle, MatrixDiagonal, ReadOnlySpan<Complex<T>>, ReadOnlySpan<Int32>, ReadOnlySpan<Int32>, ReadOnlySpan<Int32>, ReadOnlySpan<Complex<T>>, Int32, Span<Complex<T>>, Int32)
Solves for a dense matrix for a sparse matrix in compressed sparse column format.
public abstract void TriangularSolve(
TransposeOperation transA,
int m,
int n,
Complex<T> alpha,
MatrixStructure structure,
MatrixTriangle storedTriangle,
MatrixDiagonal matrixDiagonal,
ReadOnlySpan<Complex<T>> a,
ReadOnlySpan<int> aRows,
ReadOnlySpan<int> aPointerB,
ReadOnlySpan<int> aPointerE,
ReadOnlySpan<Complex<T>> b,
int ldb,
Span<Complex<T>> c,
int ldc
)
Parameters
- transA TransposeOperation
- Specifies the operation to be performed on the matrix a.
- m Int32
- The number of rows in the matrix a.
- n Int32
- The number of columns in the matrix b.
- alpha Complex<T>
- The scalar used to multiply the matrix-vector product.
- structure MatrixStructure
- A MatrixStructure value that specifies the structure of the matrix.
- storedTriangle MatrixTriangle
- A MatrixTriangle value that specifies whether the matrix is upper or lower triangular.
- matrixDiagonal MatrixDiagonal
- A MatrixDiagonal value that indicates whether the diagonal elements are all 1 or not.
- a ReadOnlySpan<Complex<T>>
- A span that contains the elements of the matrix.
- aRows ReadOnlySpan<Int32>
- Integer array that contains the 1-based row indices of the corresponding elements of a.
- aPointerB ReadOnlySpan<Int32>
- Integer array of length m containing the 1-based indices into a of the first component of each column.
- aPointerE ReadOnlySpan<Int32>
- Integer array of length m containing the 1-based indices into a of the first component of each column.
- b ReadOnlySpan<Complex<T>>
- A two-dimensional array containing the elements of the right-hand side.
- ldb Int32
- The leading dimension of the matrix b.
- c Span<Complex<T>>
- A two-dimensional array containing the elements of the solution.
- ldc Int32
- The leading dimension of the matrix c.