public class MVector extends Object implements MatrixValueI
| Constructor and Description |
|---|
MVector(int size)
constructs a vector of a given size.
|
| Modifier and Type | Method and Description |
|---|---|
MatrixValueI |
copy()
returns a copy of this value.
|
boolean |
equals(Object obj)
value of constant ele(1).
|
Dimensions |
getDim()
Returns the dimension of this object.
|
Object |
getEle(int i)
gets the i-th element, treats data a a linear array.
|
Object[] |
getEles() |
static MatrixValueI |
getInstance(int size)
Creates a vector of a given size.
|
int |
getNumEles()
The total number of elements.
|
int |
hashCode()
Always override hashCode when you override equals.
|
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() |
public static MatrixValueI getInstance(int size)
public Dimensions getDim()
MatrixValueIgetDim in interface MatrixValueIpublic int getNumEles()
MatrixValueIgetNumEles in interface MatrixValueIpublic void setEle(int i,
Object value)
MatrixValueIsetEle in interface MatrixValueIpublic Object getEle(int i)
MatrixValueIgetEle in interface MatrixValueIpublic void setEles(MatrixValueI val)
setEles in interface MatrixValueIpublic Object[] getEles()
public boolean equals(Object obj)
public int hashCode()
public MatrixValueI copy()
MatrixValueIcopy in interface MatrixValueICopyright © 2018. All rights reserved.