@Deprecated public final class DoubleScalar extends AScalar
Modifier and Type | Field and Description |
---|---|
double |
value
Deprecated.
|
Constructor and Description |
---|
DoubleScalar(double value)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
abs()
Deprecated.
Replaces all elements of this array with their absolute values, according to Math.abs(double)
|
void |
add(AScalar s)
Deprecated.
|
void |
add(double d)
Deprecated.
Adds a double value to all elements in this array
|
static DoubleScalar |
create(AScalar a)
Deprecated.
|
static DoubleScalar |
create(double value)
Deprecated.
|
static DoubleScalar |
createFromVector(AVector data)
Deprecated.
Creates a new Scalar using the elements in the specified vector.
|
DoubleScalar |
exactClone()
Deprecated.
Returns an exact deep clone of an array (i.e.
|
double |
get()
Deprecated.
Returns the double value of a scalar array
|
void |
getElements(double[] dest,
int offset)
Deprecated.
Gets all elements of the array, copying them into a double array
|
boolean |
isView()
Deprecated.
Return true if this array is a view type
|
void |
multiply(double factor)
Deprecated.
Multiplies all elements of the array by a given double value
|
void |
negate()
Deprecated.
Negates all elements in the array
|
void |
scaleAdd(double factor,
double constant)
Deprecated.
Scales all elements of the array by a given double value and adds a constant vale
|
void |
set(double value)
Deprecated.
Sets all elements of an array to a specific double value
|
void |
sub(double d)
Deprecated.
Subtracts a double value from all elements in this array
|
add, applyOp, applyOp, asDoubleArray, asVector, broadcast, clamp, clone, copyTo, dimensionality, divide, elementCount, elementIterator, elementMax, elementMin, elementSquaredSum, elementSum, epsilonEquals, epsilonEquals, equals, equals, equals, get, get, get, getLongShape, getShape, getShape, getSlices, getTranspose, getTransposeView, hashCode, immutable, innerProduct, innerProduct, isElementConstrained, isFullyMutable, isMutable, isZero, iterator, multiply, mutable, nonZeroCount, outerProduct, pow, reshape, set, setElements, slice, slice, sliceCount, sparse, square, sub, sub, subArray, toDoubleArray, toDoubleBuffer, toString, validate
asElementList, broadcastCloneLike, broadcastLike, density, divide, ensureMutable, exp, fill, getShapeClone, getSlices, getSliceViews, getTransposeCopy, isBoolean, isSameShape, join, log, reciprocal, rotateView, scale, set, set, set, set, setElements, signum, sqrt, toArray, toVector
finalize, getClass, notify, notifyAll, wait, wait, wait
asElementList, broadcastCloneLike, broadcastLike, divide, ensureMutable, exp, fill, getShapeClone, getSlices, getSliceViews, getTransposeCopy, isBoolean, isSameShape, join, log, reciprocal, rotateView, scale, set, set, set, set, setElements, signum, sqrt, toArray, toVector
public static DoubleScalar create(double value)
public static DoubleScalar create(AScalar a)
public double get()
INDArray
public void set(double value)
INDArray
public void abs()
INDArray
public void add(double d)
INDArray
public void sub(double d)
INDArray
public void multiply(double factor)
INDArray
public void negate()
INDArray
public void scaleAdd(double factor, double constant)
INDArray
scaleAdd
in interface INDArray
scaleAdd
in class AbstractArray<Object>
public boolean isView()
INDArray
public void getElements(double[] dest, int offset)
INDArray
getElements
in interface INDArray
getElements
in class AScalar
public DoubleScalar exactClone()
INDArray
exactClone
in interface INDArray
exactClone
in class AScalar
public static DoubleScalar createFromVector(AVector data)
data
- rows
- columns
- Copyright © 2014. All Rights Reserved.