public abstract class AScalar extends AbstractArray<Object>
| Constructor and Description |
|---|
AScalar() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(AScalar s) |
void |
add(double d) |
void |
add(INDArray a) |
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.
|
INDArray |
broadcast(int... targetShape) |
AScalar |
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.
|
int |
dimensionality() |
long |
elementCount() |
boolean |
equals(AScalar o) |
boolean |
equals(INDArray o)
Returns true if the two arrays are exactly equal in value and shape
|
boolean |
equals(Object o) |
abstract AScalar |
exactClone()
Returns an exact deep clone of an array (i.e.
|
abstract double |
get() |
double |
get(int... indexes) |
long[] |
getLongShape()
Returns the shape of the array as an array of longs.
|
int[] |
getShape()
Returns the shape of the array as an array of ints.
|
List<Object> |
getSlices() |
int |
hashCode() |
INDArray |
innerProduct(INDArray a) |
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)
|
Iterator<Object> |
iterator() |
void |
multiply(double factor) |
INDArray |
outerProduct(INDArray a) |
INDArray |
reshape(int... dimensions) |
void |
set(double value) |
void |
set(int[] indexes,
double value) |
void |
setElements(double[] values,
int offset,
int length) |
INDArray |
slice(int position) |
int |
sliceCount() |
void |
sub(AScalar s) |
void |
sub(double d) |
void |
sub(INDArray a) |
String |
toString() |
get, get, scale, set, set, set, set, setElements, squarepublic abstract double get()
get in interface INDArrayget in class AbstractArray<Object>public void set(double value)
set in interface INDArrayset in class AbstractArray<Object>public void setElements(double[] values,
int offset,
int length)
public int dimensionality()
public INDArray slice(int position)
public int sliceCount()
public boolean isMutable()
INDArraypublic boolean isFullyMutable()
INDArraypublic boolean isElementConstrained()
INDArraypublic void add(double d)
public void sub(double d)
public void add(AScalar s)
public void add(INDArray a)
add in interface INDArrayadd in class AbstractArray<Object>public void sub(INDArray a)
sub in interface INDArraysub in class AbstractArray<Object>public void sub(AScalar s)
public INDArray innerProduct(INDArray a)
innerProduct in interface INDArrayinnerProduct in class AbstractArray<Object>public INDArray outerProduct(INDArray a)
outerProduct in interface INDArrayouterProduct in class AbstractArray<Object>public double get(int... indexes)
public void set(int[] indexes,
double value)
public int[] getShape()
INDArraypublic long[] getLongShape()
INDArraypublic long elementCount()
public AVector asVector()
INDArraypublic INDArray reshape(int... dimensions)
reshape in interface INDArrayreshape in class AbstractArray<Object>public void applyOp(IOp op)
INDArraypublic void applyOp(Op op)
INDArraypublic AScalar clone()
INDArrayclone in interface INDArrayclone in class AbstractArray<Object>public void multiply(double factor)
public INDArray broadcast(int... targetShape)
broadcast in interface INDArraybroadcast in class AbstractArray<Object>public boolean equals(Object o)
equals in class AbstractArray<Object>public boolean equals(INDArray o)
INDArraypublic boolean equals(AScalar o)
public int hashCode()
hashCode in class AbstractArray<Object>public String toString()
toString in class AbstractArray<Object>Copyright © 2013. All Rights Reserved.