public final class ImmutableScalar extends AScalar
| Modifier and Type | Field and Description |
|---|---|
static ImmutableScalar |
ONE |
static ImmutableScalar |
ZERO |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableScalar |
create(AScalar a) |
static ImmutableScalar |
create(double value) |
AScalar |
exactClone()
Creates a deep clone of an array, using the same class implementation as the original array
|
double |
get()
Returns the double value of a scalar array
|
void |
getElements(double[] dest,
int offset)
Gets all elements of the array, copying them into a double array at the specified offset
|
ImmutableScalar |
immutable()
Returns an immutable version of this array.
|
boolean |
isFullyMutable()
If this method returns true, the INDArray is guaranteed to be fully mutable
in all positions i.e.
|
boolean |
isMutable()
Returns true if the INDArray is mutable (at least partially)
|
boolean |
isView()
Return true if this array is considered as a view type.
|
Scalar |
mutable()
Coerces this INDArray to a fully mutable format.
|
void |
set(double value)
Sets all elements of an array to a specific double value
|
AScalar |
sparse()
Coerces this INDArray to a sparse format, without changing its element values.
|
abs, add, add, addAt, addCopy, addInnerProduct, addToArray, applyOp, applyOp, applyOp, applyOp, asDoubleArray, asVector, broadcast, broadcastLike, broadcastLike, broadcastLike, checkDimension, clamp, clone, dense, denseClone, dimensionality, divide, elementCount, elementIterator, elementMax, elementMin, elementProduct, elementsEqual, elementSquaredSum, elementSum, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, get, get, get, getElements, getLongShape, getShape, getShape, getSlices, getTranspose, getTransposeView, hashCode, hasUncountable, innerProduct, innerProduct, innerProduct, innerProduct, isBoolean, isElementConstrained, isZero, iterator, multiply, multiply, negate, nonZeroCount, outerProduct, pow, reduce, reduce, reshape, set, setElements, setElements, slice, slice, sliceCount, sparseClone, square, sub, sub, subArray, toDoubleArray, toDoubleBuffer, toSliceArray, toString, validateabsCopy, add, addCopy, addInnerProduct, addInnerProduct, addMultiple, addOuterProduct, addPower, addPower, applyOpCopy, asElementList, broadcastCloneLike, broadcastCopyLike, checkMutable, componentCount, copy, density, divide, divideCopy, elementAbsPowSum, elementPowSum, ensureMutable, equals, equalsArray, exp, fill, get, get, get, get, get, getComponent, getComponents, getElements, getElements, getShapeClone, getSlices, getSliceViews, getTransposeCopy, isDense, isSameShape, isSparse, join, join, log, multiplyCopy, multiplyCopy, negateCopy, reciprocal, reciprocalCopy, reduceSlices, reduceSlices, reorder, reorder, rotateView, scale, scaleAdd, scaleAdd, scaleCopy, set, set, set, set, set, setElements, setInnerProduct, setMultiple, setMultiple, signum, signumCopy, sliceValue, sqrt, squareCopy, sub, subCopy, toArray, toStringFull, toVector, withComponentsfinalize, getClass, notify, notifyAll, wait, wait, waitabsCopy, addCopy, addMultiple, addOuterProduct, addPower, addPower, applyOpCopy, asElementList, broadcastCloneLike, broadcastCopyLike, checkMutable, componentCount, copy, divide, divideCopy, elementAbsPowSum, elementPowSum, ensureMutable, equalsArray, exp, fill, get, get, get, get, get, getComponent, getComponents, getElements, getElements, getShapeClone, getSlices, getSliceViews, getTransposeCopy, isDense, isSameShape, isSparse, join, join, log, multiplyCopy, multiplyCopy, negateCopy, reciprocal, reciprocalCopy, reduceSlices, reduceSlices, reorder, reorder, rotateView, scale, scaleAdd, scaleAdd, scaleCopy, set, set, set, set, set, setElements, setInnerProduct, setMultiple, setMultiple, signum, signumCopy, sliceValue, sqrt, squareCopy, subCopy, toArray, toVector, withComponentsforEach, spliteratorpublic static final ImmutableScalar ONE
public static final ImmutableScalar ZERO
public static ImmutableScalar create(double value)
public static ImmutableScalar create(AScalar a)
public boolean isMutable()
INDArraypublic boolean isFullyMutable()
INDArrayisFullyMutable in interface INDArrayisFullyMutable in class AScalarpublic boolean isView()
INDArraypublic double get()
INDArraypublic void getElements(double[] dest,
int offset)
INDArraygetElements in interface INDArraygetElements in class AScalarpublic void set(double value)
INDArraypublic AScalar exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AScalarpublic Scalar mutable()
INDArraypublic AScalar sparse()
INDArraypublic ImmutableScalar immutable()
INDArrayCopyright © 2016. All rights reserved.