public class SPDTridiagMatrix extends SymmTridiagMatrix
SymmTridiagMatrix, and is used
as a marker class to allow for more efficient solvers.Matrix.NormnumColumns, numRows| Constructor and Description |
|---|
SPDTridiagMatrix(int n)
Constructor for SPDTridiagMatrix
|
SPDTridiagMatrix(Matrix A)
Constructor for SPDTridiagMatrix
|
SPDTridiagMatrix(Matrix A,
boolean deep)
Constructor for SPDTridiagMatrix
|
| Modifier and Type | Method and Description |
|---|---|
SPDTridiagMatrix |
copy()
Creates a deep copy of the matrix
|
Matrix |
solve(Matrix B,
Matrix X)
X = A\B. |
add, get, getDiagonal, getOffDiagonal, iterator, set, solve, transpose, transSolve, transSolve, zeroadd, add, check, checkMultAdd, checkMultAdd, checkRank1, checkRank1, checkRank2, checkRank2, checkSize, checkSolve, checkSolve, checkTransABmultAdd, checkTransAmultAdd, checkTransBmultAdd, checkTransMultAdd, checkTranspose, checkTranspose, checkTransRank1, checkTransRank2, isSquare, max, max, mult, mult, mult, mult, multAdd, multAdd, multAdd, multAdd, norm, norm1, normF, normInf, numColumns, numRows, rank1, rank1, rank1, rank1, rank1, rank1, rank2, rank2, rank2, rank2, scale, set, set, toString, transABmult, transABmult, transABmultAdd, transABmultAdd, transAmult, transAmult, transAmultAdd, transAmultAdd, transBmult, transBmult, transBmultAdd, transBmultAdd, transMult, transMult, transMultAdd, transMultAdd, transpose, transRank1, transRank1, transRank2, transRank2clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic SPDTridiagMatrix(int n)
n - Size of the matrix. Since the matrix must be square, this
equals both the number of rows and columnspublic SPDTridiagMatrix(Matrix A)
A - Matrix to copy contents from. Only main and the superdiagonal
is copied overpublic SPDTridiagMatrix(Matrix A, boolean deep)
A - Matrix to copy contents from. Only main and the superdiagonal
is copied overdeep - True for a deep copy. For shallow copies A must
be a SymmTridiagMatrixpublic SPDTridiagMatrix copy()
Matrixcopy in interface Matrixcopy in class SymmTridiagMatrixpublic Matrix solve(Matrix B, Matrix X)
MatrixX = A\B. Not all matrices support this operation, those that
do not throw UnsupportedOperationException. Note that it is
often more efficient to use a matrix decomposition and its associated
solversolve in interface Matrixsolve in class SymmTridiagMatrixB - Matrix with the same number of rows as A, and the
same number of columns as XX - Matrix with a number of rows equal A.numColumns()
, and the same number of columns as BCopyright © 2015. All Rights Reserved.