@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, elementSquaredSum, elementSum, epsilonEquals, epsilonEquals, equals, equals, equals, get, getLongShape, getShape, getShape, getSlices, getTranspose, getTransposeView, hashCode, innerProduct, innerProduct, isElementConstrained, isFullyMutable, isMutable, isZero, iterator, multiply, nonZeroCount, outerProduct, pow, reshape, set, setElements, slice, slice, sliceCount, square, sub, sub, toDoubleArray, toDoubleBuffer, toString, validateasElementList, broadcastCloneLike, broadcastLike, divide, ensureMutable, exp, fill, get, get, getSliceViews, getTransposeCopy, isBoolean, isSameShape, log, reciprocal, scale, set, set, set, set, setElements, signum, sqrt, toArray, toVectorfinalize, getClass, notify, notifyAll, wait, wait, waitasElementList, broadcastCloneLike, broadcastLike, divide, ensureMutable, exp, fill, get, get, getSliceViews, getTransposeCopy, isBoolean, isSameShape, log, reciprocal, scale, set, set, set, set, setElements, signum, sqrt, toArray, toVectorpublic static DoubleScalar create(double value)
public static DoubleScalar create(AScalar a)
public double get()
INDArraypublic void set(double value)
INDArraypublic void abs()
INDArraypublic void add(double d)
INDArraypublic void sub(double d)
INDArraypublic void multiply(double factor)
INDArraypublic void negate()
INDArraypublic void scaleAdd(double factor,
double constant)
INDArrayscaleAdd in interface INDArrayscaleAdd in class AbstractArray<Object>public boolean isView()
INDArraypublic void getElements(double[] dest,
int offset)
INDArraygetElements in interface INDArraygetElements in class AScalarpublic DoubleScalar exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AScalarpublic static DoubleScalar createFromVector(AVector data)
data - rows - columns - Copyright © 2013. All Rights Reserved.