public abstract class AScalar extends Object implements INDArray, Cloneable
| Constructor and Description |
|---|
AScalar() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(AScalar s) |
void |
applyOp(IOp op)
Applies a unary operator to all elements of the array (in-place)
|
void |
applyOp(Op op)
Applies a unary operator to all elements of the array (in-place)
|
AVector |
asVector() |
AScalar |
clone() |
int |
dimensionality() |
long |
elementCount() |
boolean |
equals(AScalar o) |
boolean |
equals(INDArray o) |
boolean |
equals(Object o) |
abstract double |
get() |
double |
get(int... indexes) |
int[] |
getShape() |
int |
hashCode() |
boolean |
isFullyMutable()
Returns true if the INDArray is fully mutable in all positions
i.e.
|
boolean |
isMutable()
Returns true if the INDArray is mutable (at least partially)
|
INDArray |
reshape(int... dimensions) |
void |
set(double value) |
INDArray |
slice(int position) |
void |
sub(AScalar s) |
public abstract double get()
public void set(double value)
public int dimensionality()
dimensionality in interface INDArraypublic boolean isMutable()
INDArraypublic boolean isFullyMutable()
INDArrayisFullyMutable in interface INDArraypublic void add(AScalar s)
public void sub(AScalar s)
public long elementCount()
elementCount in interface INDArraypublic void applyOp(IOp op)
INDArraypublic void applyOp(Op op)
INDArraypublic AScalar clone()
public boolean equals(AScalar o)
Copyright © 2013. All Rights Reserved.