public final class BitVector extends ABitVector
| Modifier and Type | Field and Description |
|---|---|
static double |
BIT_OFF |
static double |
BIT_ON |
static double |
BIT_THRESHOLD |
| Constructor and Description |
|---|
BitVector(int length) |
| Modifier and Type | Method and Description |
|---|---|
AVector |
clone()
Clones the vector, creating a new mutable copy of all data.
|
static BitVector |
create(AVector source) |
static BitVector |
createLength(int length) |
double |
elementSum()
Returns the sum of all elements in a vector
|
BitVector |
exactClone()
Returns an exact clone of this vector, i.e.
|
double |
get(int i)
Returns the double value at the specified position in a 1D vector
|
void |
getElements(double[] data,
int offset)
Gets all elements of the array, copying them into a double array
|
boolean |
isFullyMutable()
Returns true if this vector is fully mutable, i.e.
|
boolean |
isMutable()
Returns true if this vector is mutable.
|
boolean |
isView()
Returns true if this vector is of a view type that references other vectors / data.
|
int |
length() |
long |
nonZeroCount()
Returns the number of non-zero elements in the array.
|
static BitVector |
of(double... values) |
void |
set(int i,
double value) |
String |
toString() |
double |
unsafeGet(int i) |
isBooleanisElementConstrainedabs, 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, 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, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, equalsArray, fill, fillRange, get, get, get, getLongShape, getShape, getShape, getSlices, getTranspose, getTransposeCopy, getTransposeView, hashCode, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isSameShape, isSameShape, isUnitLengthVector, isZero, iterator, join, log, logistic, magnitude, magnitudeSquared, maxAbsElement, multiply, multiply, multiply, multiply, multiplyTo, mutable, negate, 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, toVector, unsafeSet, validate, zeroCountbroadcastCloneLike, ensureMutable, exp, get, getSliceViews, reciprocal, scale, set, set, sqrt, toArrayfinalize, getClass, notify, notifyAll, wait, wait, waitbroadcastCloneLike, ensureMutable, exp, get, getSliceViews, reciprocal, scale, set, set, sqrt, toArraypublic static final double BIT_ON
public static final double BIT_OFF
public static final double BIT_THRESHOLD
public static BitVector createLength(int length)
public int length()
public double get(int i)
INDArraypublic double elementSum()
AVectorelementSum in interface INDArrayelementSum in class AVectorpublic long nonZeroCount()
INDArraynonZeroCount in interface INDArraynonZeroCount in class AVectorpublic boolean isMutable()
AVectorpublic void getElements(double[] data,
int offset)
INDArraygetElements in interface INDArraygetElements in class AVectorpublic boolean isFullyMutable()
AVectorisFullyMutable in interface INDArrayisFullyMutable in class AConstrainedVectorpublic boolean isView()
AVectorpublic void set(int i,
double value)
public AVector clone()
AVectorpublic static BitVector of(double... values)
public BitVector exactClone()
AVectorexactClone in interface INDArrayexactClone in class AVectorCopyright © 2013. All Rights Reserved.