Package gov.nih.mipav.model.algorithms
Class CeresSolver.BlockSparseMatrix
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.CeresSolver.LinearOperator
-
- gov.nih.mipav.model.algorithms.CeresSolver.SparseMatrix
-
- gov.nih.mipav.model.algorithms.CeresSolver.BlockSparseMatrix
-
- Enclosing class:
- CeresSolver
class CeresSolver.BlockSparseMatrix extends CeresSolver.SparseMatrix
-
-
Field Summary
Fields Modifier and Type Field Description private CeresSolver.CompressedRowBlockStructure
block_structure_
private int
max_num_nonzeros_
private int
num_cols_
private int
num_nonzeros_
private int
num_rows_
CeresSolver.BlockSparseMatrixRandomMatrixOptions
randomMatrixOptions
private double[]
values_
-
Constructor Summary
Constructors Constructor Description BlockSparseMatrix()
BlockSparseMatrix(CeresSolver.CompressedRowBlockStructure block_structure)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
AppendRows(CeresSolver.BlockSparseMatrix m)
CeresSolver.CompressedRowBlockStructure
block_structure()
void
DeleteRowBlocks(int delta_row_blocks)
void
LeftMultiply(double[] x, double[] y)
double[]
mutable_values()
int
num_cols()
int
num_nonzeros()
int
num_rows()
void
RightMultiply(double[] x, double[] y)
void
ScaleColumns(double[] scale)
void
SetZero()
void
SquaredColumnNorm(double[] x)
Jama.Matrix
ToDenseMatrix()
void
ToTextFile(java.io.File file)
void
ToTripletSparseMatrix(CeresSolver.TripletSparseMatrix matrix)
double[]
values()
-
Methods inherited from class gov.nih.mipav.model.algorithms.CeresSolver.SparseMatrix
RightMultiply, ScaleColumns, SquaredColumnNorm
-
-
-
-
Field Detail
-
num_rows_
private int num_rows_
-
num_cols_
private int num_cols_
-
num_nonzeros_
private int num_nonzeros_
-
max_num_nonzeros_
private int max_num_nonzeros_
-
values_
private double[] values_
-
block_structure_
private CeresSolver.CompressedRowBlockStructure block_structure_
-
randomMatrixOptions
public CeresSolver.BlockSparseMatrixRandomMatrixOptions randomMatrixOptions
-
-
Constructor Detail
-
BlockSparseMatrix
public BlockSparseMatrix(CeresSolver.CompressedRowBlockStructure block_structure)
-
BlockSparseMatrix
public BlockSparseMatrix()
-
-
Method Detail
-
SetZero
public void SetZero()
- Specified by:
SetZero
in classCeresSolver.SparseMatrix
-
RightMultiply
public void RightMultiply(double[] x, double[] y)
- Specified by:
RightMultiply
in classCeresSolver.SparseMatrix
-
LeftMultiply
public void LeftMultiply(double[] x, double[] y)
- Specified by:
LeftMultiply
in classCeresSolver.SparseMatrix
-
SquaredColumnNorm
public void SquaredColumnNorm(double[] x)
- Specified by:
SquaredColumnNorm
in classCeresSolver.SparseMatrix
-
ScaleColumns
public void ScaleColumns(double[] scale)
- Specified by:
ScaleColumns
in classCeresSolver.SparseMatrix
-
ToDenseMatrix
public Jama.Matrix ToDenseMatrix()
- Specified by:
ToDenseMatrix
in classCeresSolver.SparseMatrix
-
ToTextFile
public void ToTextFile(java.io.File file)
- Specified by:
ToTextFile
in classCeresSolver.SparseMatrix
-
num_rows
public int num_rows()
- Specified by:
num_rows
in classCeresSolver.SparseMatrix
-
num_cols
public int num_cols()
- Specified by:
num_cols
in classCeresSolver.SparseMatrix
-
num_nonzeros
public int num_nonzeros()
- Specified by:
num_nonzeros
in classCeresSolver.SparseMatrix
-
values
public double[] values()
- Specified by:
values
in classCeresSolver.SparseMatrix
-
mutable_values
public double[] mutable_values()
- Specified by:
mutable_values
in classCeresSolver.SparseMatrix
-
ToTripletSparseMatrix
public void ToTripletSparseMatrix(CeresSolver.TripletSparseMatrix matrix)
-
block_structure
public CeresSolver.CompressedRowBlockStructure block_structure()
-
AppendRows
public void AppendRows(CeresSolver.BlockSparseMatrix m)
-
DeleteRowBlocks
public void DeleteRowBlocks(int delta_row_blocks)
-
-