Package gov.nih.mipav.model.algorithms
Class CeresSolver.BlockRandomAccessDiagonalMatrix
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.CeresSolver.BlockRandomAccessMatrix
-
- gov.nih.mipav.model.algorithms.CeresSolver.BlockRandomAccessDiagonalMatrix
-
- Enclosing class:
- CeresSolver
class CeresSolver.BlockRandomAccessDiagonalMatrix extends CeresSolver.BlockRandomAccessMatrix
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Vector<java.lang.Integer>blocks_private java.util.Vector<CeresSolver.CellInfo>layout_private CeresSolver.TripletSparseMatrixtsm_
-
Constructor Summary
Constructors Constructor Description BlockRandomAccessDiagonalMatrix(java.util.Vector<java.lang.Integer> blocks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinalize()CeresSolver.CellInfoGetCell(int row_block_id, int col_block_id, int[] row, int[] col, int[] row_stride, int[] col_stride)voidInvert()CeresSolver.TripletSparseMatrixmatrix()CeresSolver.TripletSparseMatrixmutable_matrix()intnum_cols()intnum_rows()voidRightMultiply(double[] x, double[] y)voidSetZero()
-
-
-
Field Detail
-
blocks_
private java.util.Vector<java.lang.Integer> blocks_
-
layout_
private java.util.Vector<CeresSolver.CellInfo> layout_
-
tsm_
private CeresSolver.TripletSparseMatrix tsm_
-
-
Method Detail
-
finalize
public void finalize()
- Overrides:
finalizein classjava.lang.Object
-
GetCell
public CeresSolver.CellInfo GetCell(int row_block_id, int col_block_id, int[] row, int[] col, int[] row_stride, int[] col_stride)
- Specified by:
GetCellin classCeresSolver.BlockRandomAccessMatrix
-
SetZero
public void SetZero()
- Specified by:
SetZeroin classCeresSolver.BlockRandomAccessMatrix
-
Invert
public void Invert()
-
RightMultiply
public void RightMultiply(double[] x, double[] y)
-
num_rows
public int num_rows()
- Specified by:
num_rowsin classCeresSolver.BlockRandomAccessMatrix
-
num_cols
public int num_cols()
- Specified by:
num_colsin classCeresSolver.BlockRandomAccessMatrix
-
matrix
public CeresSolver.TripletSparseMatrix matrix()
-
mutable_matrix
public CeresSolver.TripletSparseMatrix mutable_matrix()
-
-