|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Number
org.lsmp.djep.vectorJep.values.Scaler
public class Scaler
Degenerate i.e. rank 0 Tensor. Just has a single element.
| Constructor Summary | |
|---|---|
protected |
Scaler()
|
protected |
Scaler(Object o)
|
| Method Summary | |
|---|---|
MatrixValueI |
copy()
returns a copy of this value. |
double |
doubleValue()
value of constant coeff. |
boolean |
equals(Object obj)
|
float |
floatValue()
value of constant coeff. |
Dimensions |
getDim()
Returns the dimension of this object. |
Object |
getEle(int i)
gets the i-th element, treats data a a linear array. |
static MatrixValueI |
getInstance(Object o)
|
int |
getNumEles()
The total number of elements. |
int |
hashCode()
Always override hashCode when you override equals. |
int |
intValue()
value of constant coeff. |
long |
longValue()
value of constant coeff. |
void |
setEle(int i,
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()
|
| Methods inherited from class java.lang.Number |
|---|
byteValue, shortValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Scaler()
protected Scaler(Object o)
| Method Detail |
|---|
public static MatrixValueI getInstance(Object o)
public Dimensions getDim()
MatrixValueI
getDim in interface MatrixValueIpublic int getNumEles()
MatrixValueI
getNumEles in interface MatrixValueI
public void setEle(int i,
Object value)
MatrixValueI
setEle in interface MatrixValueIpublic Object getEle(int i)
MatrixValueI
getEle in interface MatrixValueIpublic String toString()
toString in class Objectpublic void setEles(MatrixValueI val)
setEles in interface MatrixValueIpublic int intValue()
intValue in class Numberpublic long longValue()
longValue in class Numberpublic float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class Numberpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic MatrixValueI copy()
MatrixValueI
copy in interface MatrixValueI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||