public class SymmMatrix
extends java.lang.Object
Constructor and Description |
---|
SymmMatrix(int dim)
Construct a symmetric matrix
|
SymmMatrix(SymmMatrix mat)
Construct a symmetric matrix by deeply copying data from a given matrix
|
Modifier and Type | Method and Description |
---|---|
void |
add(int row,
int col,
double val)
add a value to entry (row, col)
|
SymmMatrix |
clone()
Make a deep copy of current matrix
|
double |
get(int row,
int col)
Get a value at entry (row, col)
|
SparseVector |
row(int row)
Retrieve a complete row of similar items
|
void |
set(int row,
int col,
double val)
set a value to entry (row, col)
|
java.lang.String |
toString() |
public SymmMatrix(int dim)
public SymmMatrix(SymmMatrix mat)
public SymmMatrix clone()
clone
in class java.lang.Object
public double get(int row, int col)
public void set(int row, int col, double val)
public void add(int row, int col, double val)
public SparseVector row(int row)
public java.lang.String toString()
toString
in class java.lang.Object