|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.math.matrix.impl.AbstractMatrix
org.apache.mahout.math.matrix.impl.AbstractMatrix1D
@Deprecated public abstract class AbstractMatrix1D
Field Summary | |
---|---|
protected int |
size
Deprecated. the number of cells this matrix (view) has |
protected int |
stride
Deprecated. the number of indexes between any two elements, i.e. |
protected int |
zero
Deprecated. the index of the first element |
Fields inherited from class org.apache.mahout.math.matrix.impl.AbstractMatrix |
---|
isNoView |
Constructor Summary | |
---|---|
protected |
AbstractMatrix1D()
Deprecated. Makes this class non instantiable, but still let's others inherit from it. |
Method Summary | |
---|---|
protected void |
checkIndex(int index)
Deprecated. Sanity check for operations requiring an index to be within bounds. |
protected void |
checkRange(int index,
int width)
Deprecated. Checks whether the receiver contains the given range and throws an exception, if necessary. |
void |
checkSize(AbstractMatrix1D b)
Deprecated. Sanity check for operations requiring two matrices with the same size. |
protected int |
index(int rank)
Deprecated. Returns the position of the element with the given relative rank within the (virtual or non-virtual) internal 1-dimensional array. |
protected int |
offset(int absRank)
Deprecated. Returns the position of the given absolute rank within the (virtual or non-virtual) internal 1-dimensional array. |
protected int |
rank(int rank)
Deprecated. Returns the absolute rank of the given relative rank. |
protected void |
setUp(int size)
Deprecated. Sets up a matrix with a given number of cells. |
protected void |
setUp(int size,
int zero,
int stride)
Deprecated. Sets up a matrix with the given parameters. |
int |
size()
Deprecated. Returns the number of cells. |
protected int |
stride(int dimension)
Deprecated. Returns the stride of the given dimension (axis, rank). |
protected AbstractMatrix1D |
vPart(int index,
int width)
Deprecated. Self modifying version of viewPart(). |
Methods inherited from class org.apache.mahout.math.matrix.impl.AbstractMatrix |
---|
ensureCapacity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int size
protected int zero
protected int stride
Constructor Detail |
---|
protected AbstractMatrix1D()
Method Detail |
---|
protected int offset(int absRank)
absRank
- the absolute rank of the element.
protected int rank(int rank)
rank
- the relative rank of the element.
protected void checkIndex(int index)
IndexOutOfBoundsException
- if index < 0 || index >= size().protected void checkRange(int index, int width)
IndexOutOfBoundsException
- if index<0 || index+width>size().public void checkSize(AbstractMatrix1D b)
IllegalArgumentException
- if size() != b.size().protected int index(int rank)
rank
- the rank of the element.protected void setUp(int size)
size
- the number of cells the matrix shall have.
IllegalArgumentException
- if size<0.protected void setUp(int size, int zero, int stride)
size
- the number of elements the matrix shall have.zero
- the index of the first element.stride
- the number of indexes between any two elements, i.e. index(i+1)-index(i).
IllegalArgumentException
- if size<0.public int size()
size
in class AbstractMatrix
protected int stride(int dimension)
IllegalArgumentException
- if dimension != 0.protected AbstractMatrix1D vPart(int index, int width)
IndexOutOfBoundsException
- if index<0 || index+width>size().
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |