| Modifier and Type | Field and Description |
|---|---|
double |
value |
| Constructor and Description |
|---|
DoubleScalar(double value) |
| Modifier and Type | Method and Description |
|---|---|
DoubleScalar |
clone()
Returns a clone of the array, as a new array which will be fully mutable
and may be of a different class to the original.
|
static AScalar |
create(double value) |
DoubleScalar |
exactClone()
Returns an exact deep clone of an array (i.e.
|
double |
get()
Returns the double value of a scalar array
|
boolean |
isView()
Return true if this is a view
|
void |
multiply(double factor)
Multiplies all elements of the array by a given double value
|
void |
set(double value)
Sets all elements of an array to a specific double value
|
add, add, add, applyOp, applyOp, asVector, broadcast, copyTo, dimensionality, elementCount, elementSquaredSum, elementSum, equals, equals, equals, get, getElements, getLongShape, getShape, getShape, getSlices, hashCode, innerProduct, isElementConstrained, isFullyMutable, isMutable, iterator, multiply, negate, nonZeroCount, outerProduct, reshape, set, setElements, slice, slice, sliceCount, sub, sub, sub, toDoubleBuffer, toString, validateget, get, getSliceViews, scale, scaleAdd, set, set, set, set, setElements, square, toVectorpublic static AScalar create(double value)
public double get()
INDArraypublic void set(double value)
INDArraypublic void multiply(double factor)
INDArraypublic boolean isView()
INDArraypublic DoubleScalar clone()
INDArraypublic DoubleScalar exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AScalarCopyright © 2013. All Rights Reserved.