public abstract class AScalar extends AbstractArray
| 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()
Creates a view of the array as a single vector in row-major order.
|
AScalar |
clone() |
int |
dimensionality() |
long |
elementCount() |
boolean |
equals(AScalar o) |
boolean |
equals(INDArray o) |
boolean |
equals(Object o) |
abstract AScalar |
exactClone() |
abstract double |
get() |
double |
get(int... indexes) |
int[] |
getShape() |
int |
hashCode() |
boolean |
isElementConstrained()
Returns true if the IND has additional constraints on element values
|
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) |
void |
set(int[] indexes,
double value) |
INDArray |
slice(int position) |
void |
sub(AScalar s) |
get, get, set, setpublic abstract double get()
get in interface INDArrayget in class AbstractArraypublic void set(double value)
set in interface INDArrayset in class AbstractArraypublic int dimensionality()
public INDArray slice(int position)
public boolean isMutable()
INDArraypublic boolean isFullyMutable()
INDArraypublic boolean isElementConstrained()
INDArraypublic void add(AScalar s)
public void sub(AScalar s)
public double get(int... indexes)
public void set(int[] indexes,
double value)
public int[] getShape()
public long elementCount()
public AVector asVector()
INDArraypublic INDArray reshape(int... dimensions)
public void applyOp(IOp op)
INDArraypublic void applyOp(Op op)
INDArraypublic AScalar clone()
clone in interface INDArrayclone in class AbstractArraypublic boolean equals(Object o)
equals in class AbstractArraypublic boolean equals(INDArray o)
public boolean equals(AScalar o)
public int hashCode()
hashCode in class AbstractArraypublic abstract AScalar exactClone()
Copyright © 2013. All Rights Reserved.