| 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)
MatrixIpublic double getDEle(int i,
int j)
public int getNRows()
MatrixIpublic int getNCols()
MatrixIpublic Dimensions getDimensions()
MatrixIgetDimensions in interface MatrixIpublic double[][] toArrayMat()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setEle(int row,
int col,
java.lang.Object val)
throws EvaluationException
MatrixIsetEle in interface MatrixIval - value to setEvaluationExceptionpublic java.lang.Object[][] toArray(java.lang.Object[][] mat)
throws EvaluationException
MatrixItoArray in interface MatrixIEvaluationException - if mat is not a matrix of the correct sizepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean eq(SequenceMatrix mat)
Copyright © 2018 Singular Systems http://www.singularsys.com/jep