public abstract class ASparseVector extends AConstrainedVector implements ISparse
| Constructor and Description |
|---|
ASparseVector() |
| Modifier and Type | Method and Description |
|---|---|
double |
density()
Computes the density ratio of this sparse array (proportion of non-zero elements)
|
abstract boolean |
includesIndex(int i)
Returns true iff the sparse vector contains the index i
|
abstract int |
nonSparseElementCount()
Returns the number of non-sparse elements in the sparse vector.
|
abstract Index |
nonSparseIndexes()
Returns the non-sparse indexes
|
abstract AVector |
nonSparseValues()
Returns the non-sparse values as a compacted vector view
|
isElementConstrained, isFullyMutableabs, add, add, add, add, add, add, addAt, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultiple, addMultipleToArray, addProduct, addProduct, addProduct, addProductToArray, addProductToArray, addToArray, addToArray, addWeighted, angle, applyOp, applyOp, asDoubleArray, asElementList, asVector, broadcast, broadcastLike, broadcastLike, clamp, clampMax, clampMin, clone, compareTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, crossProduct, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divide, divideTo, dotProduct, dotProduct, dotProduct, dotProduct, elementCount, elementIterator, elementSquaredSum, elementSum, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, exactClone, fill, fillRange, get, get, get, getElements, getLongShape, getShape, getShape, getSlices, getTranspose, getTransposeCopy, getTransposeView, hashCode, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isMutable, isSameShape, isSameShape, isUnitLengthVector, isView, isZero, iterator, join, length, log, logistic, magnitude, magnitudeSquared, maxAbsElement, multiply, multiply, multiply, multiply, multiplyTo, negate, nonZeroCount, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, pow, projectToPlane, reshape, scale, scaleAdd, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, set, set, setElements, setElements, setRange, setValues, signum, slice, slice, sliceCount, square, sub, sub, sub, subMultiple, subVector, tanh, toDoubleArray, toDoubleBuffer, toList, toNormal, toString, toVector, unsafeGet, unsafeSet, validate, zeroCountbroadcastCloneLike, ensureMutable, exp, get, getSliceViews, isBoolean, reciprocal, scale, set, set, sqrt, toArrayfinalize, getClass, notify, notifyAll, wait, wait, waitbroadcastCloneLike, ensureMutable, exp, get, getSliceViews, isBoolean, reciprocal, scale, set, set, sqrt, toArraypublic abstract int nonSparseElementCount()
public abstract AVector nonSparseValues()
public abstract Index nonSparseIndexes()
public abstract boolean includesIndex(int i)
i - Copyright © 2013. All Rights Reserved.