Modifier and Type | Method and Description |
---|---|
boolean |
eq(SequenceMatrix mat) |
boolean |
equals(java.lang.Object obj) |
double |
getDEle(int i,
int j) |
Dimensions |
getDimensions()
Gets the dimensions of the Vector or Matrix
|
java.lang.Double |
getEle(int i,
int j)
Gets an element of a matrix
|
int |
getNCols()
The number of columns
|
int |
getNRows()
The number of rows
|
int |
hashCode() |
static SequenceMatrix |
newInstance(double[][] in) |
static SequenceMatrix |
newInstance(java.lang.Double[][] in) |
static SequenceMatrix |
newInstance(DoubleVector[] rows) |
void |
setEle(int row,
int col,
java.lang.Object val)
Set an element of a matrix
|
java.lang.Object[][] |
toArray(java.lang.Object[][] mat)
Copies the data to an array
|
double[][] |
toArrayMat() |
java.lang.String |
toString() |
public static SequenceMatrix newInstance(java.lang.Double[][] in)
public static SequenceMatrix newInstance(double[][] in)
public static SequenceMatrix newInstance(DoubleVector[] rows)
public java.lang.Double getEle(int i, int j)
MatrixI
public double getDEle(int i, int j)
public int getNRows()
MatrixI
public int getNCols()
MatrixI
public Dimensions getDimensions()
MatrixI
getDimensions
in interface MatrixI
public double[][] toArrayMat()
public java.lang.String toString()
toString
in class java.lang.Object
public void setEle(int row, int col, java.lang.Object val) throws EvaluationException
MatrixI
setEle
in interface MatrixI
val
- value to setEvaluationException
public java.lang.Object[][] toArray(java.lang.Object[][] mat) throws EvaluationException
MatrixI
toArray
in interface MatrixI
EvaluationException
- if mat is not a matrix of the correct sizepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean eq(SequenceMatrix mat)
Copyright © 2018 Singular Systems http://www.singularsys.com/jep