|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcern.colt.PersistentObject
cern.colt.matrix.impl.AbstractMatrix
cern.colt.matrix.impl.AbstractMatrix1D
cern.colt.matrix.DoubleMatrix1D
cern.colt.matrix.impl.DenseDoubleMatrix1D
baseCode.dataStructure.matrix.DenseDoubleMatrix1D
Use this class when fast iteration over the matrix is of primary interest. The primary change is that getQuick is faster, and toArray returns the actual elements, not a copy. The latter is an important change to the contract of DouleMatrix1D, the former might have some unintended consequences because it hasn't been tested thoroughly.
Copyright (c) 2004 Columbia University
| Field Summary |
| Fields inherited from class cern.colt.matrix.impl.DenseDoubleMatrix1D |
elements |
| Fields inherited from class cern.colt.matrix.impl.AbstractMatrix1D |
size, stride, zero |
| Fields inherited from class cern.colt.matrix.impl.AbstractMatrix |
isNoView |
| Fields inherited from class cern.colt.PersistentObject |
serialVersionUID |
| Constructor Summary | |
|
DenseDoubleMatrix1D(double[] values)
|
|
DenseDoubleMatrix1D(int size)
|
protected |
DenseDoubleMatrix1D(int size,
double[] elements,
int zero,
int stride)
|
| Method Summary | |
double |
getQuick(int i)
This is an optimized version of getQuick. |
double[] |
toArray()
WARNING unlike the superclass, this returns the actual underlying array, not a copy. |
| Methods inherited from class cern.colt.matrix.impl.DenseDoubleMatrix1D |
assign, assign, assign, assign, assign, cardinality, haveSharedCellsRaw, index, like, like2D, setQuick, swap, toArray, viewSelectionLike, zDotProduct, zSum |
| Methods inherited from class cern.colt.matrix.DoubleMatrix1D |
aggregate, aggregate, assign, cardinality, copy, equals, equals, get, getContent, getNonZeros, getNonZeros, haveSharedCells, like, set, toString, view, viewFlip, viewPart, viewSelection, viewSelection, viewSorted, viewStrides, zDotProduct, zDotProduct, zDotProduct |
| Methods inherited from class cern.colt.matrix.impl.AbstractMatrix1D |
_offset, _rank, checkIndex, checkIndexes, checkRange, checkSize, checkSize, setUp, setUp, size, stride, toStringShort, vFlip, vPart, vStrides |
| Methods inherited from class cern.colt.matrix.impl.AbstractMatrix |
ensureCapacity, isView, trimToSize |
| Methods inherited from class cern.colt.PersistentObject |
clone |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected DenseDoubleMatrix1D(int size,
double[] elements,
int zero,
int stride)
size - elements - zero - stride - public DenseDoubleMatrix1D(double[] values)
values - public DenseDoubleMatrix1D(int size)
size - | Method Detail |
public double getQuick(int i)
DoubleMatrix1D.getQuick(int)public double[] toArray()
DoubleMatrix1D.toArray()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||