public class SparseNumberedBlockMatrix extends SparseBlockMatrix
SparseBlockMatrix.PrintFormat
Matrix.Partition, Matrix.WriteFormat
warningLevel
INDEFINITE, POSITIVE_DEFINITE, SPD, SYMMETRIC
Constructor and Description |
---|
SparseNumberedBlockMatrix() |
SparseNumberedBlockMatrix(int[] rowColSizes) |
SparseNumberedBlockMatrix(int[] rowColSizes,
int initialCapacity) |
SparseNumberedBlockMatrix(int[] rowSizes,
int[] colSizes) |
SparseNumberedBlockMatrix(int[] rowSizes,
int[] colSizes,
int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
int |
addBlock(int bi,
int bj,
MatrixBlock blk) |
void |
checkConsistency()
Check that the internal structures of this matrix are consistent.
|
SparseNumberedBlockMatrix |
clone()
Creates a clone of this NumberedSparseBlockMatrix, along with clones of
all the associated MatrixBlocks.
|
MatrixBlock |
getBlockByNumber(int num) |
void |
removeAllBlocks() |
void |
removeAllCols() |
void |
removeAllRows() |
boolean |
removeBlock(MatrixBlock oldBlk) |
void |
set(SparseBlockMatrix S)
Sets this SparseBlockMatrix to a copy of another SparseBlockMatrix.
|
add, add, addBlock, addCol, addCols, addNumNonZerosByCol, addNumNonZerosByRow, addNumNonZerosByRow, addRow, addRows, blockStructureEquals, buildKKTSystem, colSize, colSize, createSubMatrix, createSubMatrix, createTranspose, elementIsNonZero, firstBlockInCol, firstBlockInRow, frobeniusNormSquared, get, getAlignedBlockCol, getAlignedBlockRow, getBlock, getBlockCCSIndices, getBlockCCSIndices, getBlockCCSValues, getBlockCCSValues, getBlockCol, getBlockColOffset, getBlockColSize, getBlockColSizes, getBlockCRSIndices, getBlockCRSIndices, getBlockCRSValues, getBlockCRSValues, getBlockPattern, getBlockPattern, getBlockRow, getBlockRowOffset, getBlockRowSize, getBlockRowSizes, getCCSIndices, getCCSValues, getColumn, getColumn, getComp, getCRSIndices, getCRSValues, getElementBlock, getRange, getRow, getRow, getSignature, getSignature, getSubMatrix, getSubMatrixColSize, getSubMatrixColumn, getSubMatrixRow, getSubMatrixRowSize, hasSymmetricBlockSizing, isSymmetric, isVerticallyLinked, maxNorm, mul, mulLeft, mulSubMatrixVec, mulTransposeRight, negate, numBlockCols, numBlockRows, numBlocks, numNonZeroVals, numNonZeroVals, numNonZeroVals, perturb, printBlocks, removeBlock, removeCol, removeCols, removeRow, removeRows, rowSize, rowSize, scale, scaledAdd, scaledAdd, scanBlocks, set, set, set, setColCapacity, setRandomValues, setRandomValues, setRandomValues, setRowCapacity, setSubMatrix, setVerticallyLinked, setZero, signatureEquals, sub, sub, toString, valueIsNonZero, writeBlocks, writeBlocks, zeroColumn, zeroRow
setCCSValues, setCRSValues, setRandom, setRandom, writeToFileCRS
containsNaN, determinant, epsilonEquals, equals, frobeniusNorm, get, get, getCCSIndices, getCCSIndices, getCCSValues, getCCSValues, getColumn, getColumn, getCRSIndices, getCRSIndices, getCRSValues, getCRSValues, getDefaultFormat, getRow, getSize, getSubMatrix, hasNaN, idString, infinityNorm, isFixedSize, isWritable, mul, mul, mul, mulAdd, mulAdd, mulAdd, mulTranspose, mulTranspose, mulTranspose, mulTransposeAdd, mulTransposeAdd, mulTransposeAdd, oneNorm, scan, scan, setCRSValues, setDefaultFormat, setSize, toString, toString, toString, trace, write, write, write, write, write, write, write, writeToFile
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
determinant, epsilonEquals, equals, frobeniusNorm, get, getCCSIndices, getCCSIndices, getCCSValues, getCCSValues, getColumn, getColumn, getCRSIndices, getCRSIndices, getCRSValues, getCRSValues, getRow, getSize, getSubMatrix, infinityNorm, isFixedSize, mul, mul, mul, mulAdd, mulAdd, mulAdd, mulTranspose, mulTranspose, mulTranspose, mulTransposeAdd, mulTransposeAdd, mulTransposeAdd, oneNorm, scan, setSize, toString, toString, trace, write, write, write
public SparseNumberedBlockMatrix()
public SparseNumberedBlockMatrix(int[] rowColSizes)
public SparseNumberedBlockMatrix(int[] rowSizes, int[] colSizes)
public SparseNumberedBlockMatrix(int[] rowColSizes, int initialCapacity)
public SparseNumberedBlockMatrix(int[] rowSizes, int[] colSizes, int initialCapacity)
public int addBlock(int bi, int bj, MatrixBlock blk)
addBlock
in class SparseBlockMatrix
public boolean removeBlock(MatrixBlock oldBlk)
removeBlock
in class SparseBlockMatrix
public void removeAllBlocks()
removeAllBlocks
in class SparseBlockMatrix
public void removeAllRows()
removeAllRows
in class SparseBlockMatrix
public void removeAllCols()
removeAllCols
in class SparseBlockMatrix
public MatrixBlock getBlockByNumber(int num)
public void checkConsistency()
SparseBlockMatrix
checkConsistency
in interface Matrix
checkConsistency
in class SparseBlockMatrix
public void set(SparseBlockMatrix S)
SparseBlockMatrix
set
in class SparseBlockMatrix
S
- matrix to be copiedpublic SparseNumberedBlockMatrix clone()
clone
in interface Clonable
clone
in class SparseBlockMatrix