public class Matrix extends Object implements MatrixValueI
Modifier and Type | Method and Description |
---|---|
MatrixValueI |
copy()
returns a copy of this value.
|
boolean |
equals(Object obj)
Are two matrices equal, element by element
Overrides Object.
|
Dimensions |
getDim()
Returns the dimension of this object.
|
Object |
getEle(int n)
gets the i-th element, treats data a a linear array.
|
Object |
getEle(int i,
int j) |
Object[][] |
getEles() |
static MatrixValueI |
getInstance(int rows,
int cols) |
int |
getNumCols() |
int |
getNumEles()
The total number of elements.
|
int |
getNumRows() |
int |
hashCode()
Always override hashCode when you override equals.
|
void |
setEle(int i,
int j,
Object value) |
void |
setEle(int n,
Object value)
sets the i-th element, treats data a a linear array.
|
void |
setEles(MatrixValueI val)
sets the elements to those of the arguments.
|
String |
toString()
Returns a string representation of matrix.
|
public MatrixValueI copy()
MatrixValueI
copy
in interface MatrixValueI
public static MatrixValueI getInstance(int rows, int cols)
public String toString()
public Dimensions getDim()
MatrixValueI
getDim
in interface MatrixValueI
public int getNumEles()
MatrixValueI
getNumEles
in interface MatrixValueI
public int getNumRows()
public int getNumCols()
public void setEle(int n, Object value)
MatrixValueI
setEle
in interface MatrixValueI
public void setEle(int i, int j, Object value)
public Object getEle(int n)
MatrixValueI
getEle
in interface MatrixValueI
public Object getEle(int i, int j)
public Object[][] getEles()
public void setEles(MatrixValueI val)
setEles
in interface MatrixValueI
public boolean equals(Object obj)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics