public final class BitVector extends AVector
| Modifier and Type | Field and Description |
|---|---|
static double |
BIT_OFF |
static double |
BIT_ON |
static double |
BIT_THRESHOLD |
| Constructor and Description |
|---|
BitVector(AVector source) |
BitVector(BitVector source) |
BitVector(int length) |
| Modifier and Type | Method and Description |
|---|---|
AVector |
clone()
Clones the vector, creating a new copy of all data.
|
void |
copyTo(double[] data,
int offset)
Copies a the contents of a vector to a double array at the specified offset
|
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
|
boolean |
getBit(int i) |
boolean |
isElementConstrained()
Returns true if the IND has additional constraints on element values
|
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() |
abs, 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, asElementList, asVector, broadcast, clamp, clampMax, clampMin, compareTo, copyTo, copyTo, copyTo, copyTo, copyTo, countZeros, crossProduct, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divideTo, dotProduct, dotProduct, elementCount, elementSquaredSum, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, fill, fillRange, get, getElements, getLongShape, getShape, getShape, getSlices, getTranspose, getTransposeView, hashCode, innerProduct, innerProduct, innerProduct, interpolate, interpolate, isUnitLengthVector, isZeroVector, iterator, join, magnitude, magnitudeSquared, maxAbsElement, multiply, multiply, multiply, multiply, multiplyTo, negate, normalise, normaliseMaxAbsElement, outerProduct, outerProduct, pow, projectToPlane, reshape, scale, scaleAdd, scaleAdd, scaleToMagnitude, set, set, set, set, set, set, set, set, set, setElements, setValues, signum, slice, slice, sliceCount, square, sub, sub, sub, subMultiple, subVector, toArray, toDoubleBuffer, toList, validateepsilonEquals, epsilonEquals, get, get, getSliceViews, reciprocal, scale, set, set, setElements, toVectorfinalize, getClass, notify, notifyAll, wait, wait, waitepsilonEquals, epsilonEquals, get, get, getSliceViews, reciprocal, scale, set, set, setElements, toVectorpublic static final double BIT_ON
public static final double BIT_OFF
public static final double BIT_THRESHOLD
public BitVector(int length)
public BitVector(AVector source)
public BitVector(BitVector source)
public static BitVector createLength(int length)
public int length()
public final boolean getBit(int i)
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 copyTo(double[] data,
int offset)
AVectorpublic boolean isFullyMutable()
AVectorisFullyMutable in interface INDArrayisFullyMutable in class AVectorpublic boolean isElementConstrained()
INDArrayisElementConstrained in interface INDArrayisElementConstrained in class AVectorpublic 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.