Package gov.nih.mipav.model.algorithms
Class CeresSolver2.BlockRandomAccessSparseMatrix
java.lang.Object
gov.nih.mipav.model.algorithms.CeresSolver.BlockRandomAccessMatrix
gov.nih.mipav.model.algorithms.CeresSolver2.BlockRandomAccessSparseMatrix
- Enclosing class:
CeresSolver2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Vector<CeresSolver.Pair<CeresSolver.Pair<Integer, Integer>, CeresSolver.Pair<double[], Integer>>> final longprivate HashMap<Long, CeresSolver.CellInfo> private CeresSolver.TripletSparseMatrix -
Constructor Summary
ConstructorsConstructorDescriptionBlockRandomAccessSparseMatrix(Vector<Integer> blocks, Set<CeresSolver.Pair<Integer, Integer>> block_pairs) -
Method Summary
Modifier and TypeMethodDescriptionvoidfinalize()GetCell(int row_block_id, int col_block_id, int[] row, int[] col, int[] row_stride, int[] col_stride) longIntPairToLong(int row, int col) voidLongToIntPair(long index, int[] row, int[] col) matrix()intnum_cols()intnum_rows()voidSetZero()voidSymmetricRightMultiply(double[] x, double[] y)
-
Field Details
-
kMaxRowBlocks
public final long kMaxRowBlocks -
blocks_
-
block_positions_
-
layout_
-
cell_values_
private Vector<CeresSolver.Pair<CeresSolver.Pair<Integer,Integer>, cell_values_CeresSolver.Pair<double[], Integer>>> -
tsm_
-
-
Constructor Details
-
BlockRandomAccessSparseMatrix
-
-
Method Details
-
finalize
public void finalize() -
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
-
SymmetricRightMultiply
public void SymmetricRightMultiply(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
-
mutable_matrix
-
IntPairToLong
public long IntPairToLong(int row, int col) -
LongToIntPair
public void LongToIntPair(long index, int[] row, int[] col)
-