| Package | Description |
|---|---|
| mikera.arrayz | |
| mikera.arrayz.impl | |
| mikera.indexz | |
| mikera.matrixx | |
| mikera.matrixx.impl | |
| mikera.transformz | |
| mikera.transformz.impl | |
| mikera.vectorz | |
| mikera.vectorz.impl | |
| mikera.vectorz.util |
| Modifier and Type | Method and Description |
|---|---|
double |
INDArray.get(Index ix)
Returns the double value at the specified position in the array
|
| Modifier and Type | Method and Description |
|---|---|
double |
AbstractArray.get(Index ix) |
| Modifier and Type | Field and Description |
|---|---|
static Index |
Index.EMPTY |
| Modifier and Type | Method and Description |
|---|---|
Index |
Index.clone() |
Index |
Index.compose(AIndex a) |
Index |
AIndex.compose(AIndex a)
Composes this index with a second index, returning a new index.
|
Index |
Index.compose(Index a) |
static Index |
Indexz.create(AIndex source) |
static Index |
Index.create(AIndex index) |
static Index |
Index.create(ArrayList<Integer> v)
Creates an Index using the values from the given ArrayList.
|
static Index |
Index.create(AVector v)
Creates an Index using the values from the given AVector.
|
static Index |
Indexz.create(int[] source) |
static Index |
Index.create(int[] indices) |
static Index |
Indexz.create(List<Integer> data) |
static Index |
Index.create(List<Integer> v)
Creates an Index using the values from the given List.
|
static Index |
Indexz.createLength(int length) |
static Index |
Index.createLength(int len)
Create a new zero-filled Index with the specified length
|
static Index |
Indexz.createProgression(int start,
int length,
int skip)
Create an Index containing an arithmetic progression
|
static Index |
Indexz.createRandomChoice(int count,
Index source) |
static Index |
Indexz.createRandomChoice(int count,
int max) |
static Index |
Indexz.createRandomPermutation(int length) |
static Index |
Indexz.createRandomSelection(int length,
int maxValue)
Creates a random selection of given length from the numbers 0..maxValue-1
Results are not sorted.
|
static Index |
Indexz.createRandomSubset(AIndex index,
double probability)
Returns a random subset of an Index, including each element with the given probability
|
static Index |
Indexz.createRandomSubset(int length,
double probability) |
static Index |
Indexz.createSequence(int length)
Creates a Index containing the sequence 0, 1, ...
|
static Index |
Indexz.createSequence(int start,
int length)
Create an Index containing an arithmetic sequence
(a, a+1, a+2 .....
|
static Index |
Index.createSorted(Set<Integer> keySet) |
static Index |
Index.createSorted(SortedSet<Integer> keySet) |
Index |
Index.exactClone() |
Index |
Index.includeSorted(Index ind) |
Index |
Index.includeSorted(Set<Integer> is) |
Index |
Index.insert(int position,
int value)
Returns a new Index with a value inserted at the specified position
|
Index |
Index.invert()
Inverts the permutation represented by this Index
|
static Index |
Index.of(int... indexes)
Creates a new Index, using the specified index values
|
Index |
AIndex.toIndex() |
static Index |
Index.wrap(int[] indexes)
Creates a new Index, wrapping the provided index array
|
| Modifier and Type | Method and Description |
|---|---|
Index |
Index.compose(Index a) |
boolean |
AIndex.contains(Index inds) |
static Index |
Indexz.createRandomChoice(int count,
Index source) |
boolean |
Index.equals(Index o) |
Index |
Index.includeSorted(Index ind) |
void |
Index.lookupWith(Index source) |
void |
Index.permute(Index permutationIndex)
Permutes this vector according to a given permutation index
|
| Modifier and Type | Method and Description |
|---|---|
static AMatrix |
Matrixx.createSparse(int columnCount,
Index[] indexes,
AVector[] weights)
Create a sparse array, given an Index of column positions and AVector of corresponding values for each row in the sparse array
Performs a defensive copy of underlying data.
|
| Modifier and Type | Method and Description |
|---|---|
static PermutationMatrix |
PermutationMatrix.create(Index rowPermutations) |
static PermutationMatrix |
PermutationMatrix.wrap(Index rowPermutations) |
| Constructor and Description |
|---|
PermutedMatrix(AMatrix source,
Index rowPermutations) |
PermutedMatrix(AMatrix source,
Index rowPermutations,
Index columnPermutations) |
| Modifier and Type | Method and Description |
|---|---|
ATransform |
ATransform.takeComponents(Index components)
Returns a wrapper transform that returns a subset of this transform's output components
|
| Modifier and Type | Method and Description |
|---|---|
static SubsetTransform |
SubsetTransform.create(ATransform trans,
Index components) |
static SubsetTransform |
SubsetTransform.create(SubsetTransform trans,
Index components) |
| Modifier and Type | Method and Description |
|---|---|
Index |
AVector.nonSparseIndex()
Returns an Index indicating which elements of this vector are defined as non-sparse.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AVector.addMultiple(AVector source,
Index sourceToDest,
double factor)
Adds source vector to this vector at the specified indexes which should map from source->this
|
void |
Vector.addMultiple(Vector source,
Index index,
double factor) |
void |
AVector.addMultiple(Vector source,
Index sourceToDest,
double factor)
Adds source vector to this vector at the specified indexes which should map from source->this
|
double |
Vector.dotProduct(AVector v,
Index ix) |
double |
AVector.dotProduct(AVector v,
Index ix)
Returns the dotProduct of this vector with the elements of another vector mapped to specified indexes in this vector.
|
double |
Vector.dotProduct(Vector v,
Index ix) |
void |
AVector.set(AVector source,
Index indexes)
sets the vector using values indexed from another vector
|
| Modifier and Type | Method and Description |
|---|---|
Index |
ZeroVector.nonSparseIndex() |
Index |
SparseIndexedVector.nonSparseIndex() |
Index |
SparseImmutableVector.nonSparseIndex() |
Index |
SparseHashedVector.nonSparseIndex() |
Index |
SingleElementVector.nonSparseIndex() |
Index |
ISparseVector.nonSparseIndex()
Returns an Index specifying the non-sparse elements
|
Index |
GrowableIndexedVector.nonSparseIndex() |
Index |
AxisVector.nonSparseIndex() |
abstract Index |
ASparseVector.nonSparseIndex() |
Index |
ASingleElementVector.nonSparseIndex() |
| Modifier and Type | Method and Description |
|---|---|
static SparseIndexedVector |
SparseIndexedVector.create(int length,
Index index,
AVector data)
Creates a SparseIndexedVector using the given sorted Index to identify
the indexes of non-zero values, and a dense vector to specify all the
non-zero element values
|
static AVector |
SparseImmutableVector.create(int length,
Index sparseIndex,
AVector sparseValues)
Creates a SparseImmutableVector using the given sorted Index to identify the indexes of non-zero values,
and a dense vector to specify all the non-zero element values
|
static SparseIndexedVector |
SparseIndexedVector.create(int length,
Index index,
double[] data)
Creates a SparseIndexedVector using the given sorted Index to identify
the indexes of non-zero values, and a double[] array to specify all the
non-zero element values
|
static AVector |
SparseImmutableVector.create(int length,
Index sparseIndex,
double[] sparseValues)
Creates a SparseImmutableVector using the given sorted Index to identify the indexes of non-zero values,
and a double[] array to specify all the non-zero element values
|
static SparseHashedVector |
SparseHashedVector.create(int length,
Index index,
Vector values)
Create a SparseHashedVector with specified non-zero indexes and values.
|
void |
SparseIndexedVector.includeIndices(Index ixs)
Include additional indices in the non-sparse index set of this vector.
|
static IndexVector |
IndexVector.wrap(Index a)
Creates an IndexVector wrapping the given immutable index
WARNING: Index will be used as internal storage for the IndexVector
|
static SparseIndexedVector |
SparseIndexedVector.wrap(int length,
Index index,
double[] data)
Creates a SparseIndexedVector with the specified index and data values.
|
static SparseImmutableVector |
SparseImmutableVector.wrap(int length,
Index index,
double[] nonSparseValues)
Creates a SparseImmutableVector with the specified index and data values.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
ErrorMessages.incompatibleShapes(Index index,
AVector v) |
Copyright © 2016. All rights reserved.