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
public class CeresSolver2.BlockRandomAccessSparseMatrix extends CeresSolver.BlockRandomAccessMatrix
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Vector<java.lang.Integer>
block_positions_
private java.util.Vector<java.lang.Integer>
blocks_
private java.util.Vector<CeresSolver.Pair<CeresSolver.Pair<java.lang.Integer,java.lang.Integer>,CeresSolver.Pair<double[],java.lang.Integer>>>
cell_values_
long
kMaxRowBlocks
private java.util.HashMap<java.lang.Long,CeresSolver.CellInfo>
layout_
private CeresSolver.TripletSparseMatrix
tsm_
-
Constructor Summary
Constructors Constructor Description BlockRandomAccessSparseMatrix(java.util.Vector<java.lang.Integer> blocks, java.util.Set<CeresSolver.Pair<java.lang.Integer,java.lang.Integer>> block_pairs)
-
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)
long
IntPairToLong(int row, int col)
void
LongToIntPair(long index, int[] row, int[] col)
CeresSolver.TripletSparseMatrix
matrix()
CeresSolver.TripletSparseMatrix
mutable_matrix()
int
num_cols()
int
num_rows()
void
SetZero()
void
SymmetricRightMultiply(double[] x, double[] y)
-
-
-
Field Detail
-
kMaxRowBlocks
public final long kMaxRowBlocks
-
blocks_
private final java.util.Vector<java.lang.Integer> blocks_
-
block_positions_
private java.util.Vector<java.lang.Integer> block_positions_
-
layout_
private java.util.HashMap<java.lang.Long,CeresSolver.CellInfo> layout_
-
cell_values_
private java.util.Vector<CeresSolver.Pair<CeresSolver.Pair<java.lang.Integer,java.lang.Integer>,CeresSolver.Pair<double[],java.lang.Integer>>> cell_values_
-
tsm_
private CeresSolver.TripletSparseMatrix tsm_
-
-
Constructor Detail
-
BlockRandomAccessSparseMatrix
public BlockRandomAccessSparseMatrix(java.util.Vector<java.lang.Integer> blocks, java.util.Set<CeresSolver.Pair<java.lang.Integer,java.lang.Integer>> block_pairs)
-
-
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
-
SymmetricRightMultiply
public void SymmetricRightMultiply(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()
-
IntPairToLong
public long IntPairToLong(int row, int col)
-
LongToIntPair
public void LongToIntPair(long index, int[] row, int[] col)
-
-