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.TripletSparseMatrix
tsm_
-
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 void
finalize()
CeresSolver.CellInfo
GetCell(int row_block_id, int col_block_id, int[] row, int[] col, int[] row_stride, int[] col_stride)
void
Invert()
CeresSolver.TripletSparseMatrix
matrix()
CeresSolver.TripletSparseMatrix
mutable_matrix()
int
num_cols()
int
num_rows()
void
RightMultiply(double[] x, double[] y)
void
SetZero()
-
-
-
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:
finalize
in 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:
GetCell
in classCeresSolver.BlockRandomAccessMatrix
-
SetZero
public void SetZero()
- Specified by:
SetZero
in classCeresSolver.BlockRandomAccessMatrix
-
Invert
public void Invert()
-
RightMultiply
public void RightMultiply(double[] x, double[] y)
-
num_rows
public int num_rows()
- Specified by:
num_rows
in classCeresSolver.BlockRandomAccessMatrix
-
num_cols
public int num_cols()
- Specified by:
num_cols
in classCeresSolver.BlockRandomAccessMatrix
-
matrix
public CeresSolver.TripletSparseMatrix matrix()
-
mutable_matrix
public CeresSolver.TripletSparseMatrix mutable_matrix()
-
-