Multi Array
A generic ndarray. Methods in this interface support only read-only access to the ndarray.
Functions
Returns new MultiArray which is a copy of the original ndarray.
Returns new MultiArray which is a deep copy of the original ndarray.
Returns new one-dimensional ndarray which is a copy of the original ndarray.
Returns true
if this ndarray is not empty.
Returns an ndarray with a new (dim1) shape without changing data.
Properties
Inheritors
Extensions
Creates a Sequence instance that wraps the original collection returning its elements when being iterated.
Returns a Map containing the elements from the given collection indexed by the key returned from keySelector function applied to each element.
Returns a Map containing the values provided by valueTransform and indexed by keySelector functions applied to elements of the given collection.
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function applied to each element of the given collection and value is the element itself.
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function and and value is provided by the valueTransform function applied to elements of the given collection.
Populates and returns the destination mutable map with key-value pairs provided by transform function applied to each element of the given collection.
Returns a Map where keys are elements from the given collection and values are produced by the valueSelector function applied to each element.
Populates and returns the destination mutable map with key-value pairs for each element of the given collection, where key is the element itself and value is provided by the valueSelector function applied to that key.
Transforms this MultiArray of ComplexDouble to an NDArray of the conjugated value. Dimensions are preserved.
Transforms this MultiArray of ComplexFloat to an NDArray of the conjugated value. Dimensions are preserved.
Returns an ndarray of Double from the given ndarray to each element of which a cos function has been applied.
Returns an ndarray of Float from the given ndarray to each element of which a cos function has been applied.
Returns an ndarray of ComplexFloat from the given ndarray to each element of which a cos function has been applied.
Returns the matrix product of two numeric matrices.
Returns the matrix product of two complex matrices.
Returns the matrix product of a numeric matrix and a numeric vector.
Returns the matrix product of a complex matrix and a complex vector.
Returns the product of two numeric vectors.
Returns the product of two complex vectors.
Returns an ndarray of Double from the given ndarray to each element of which an exp function has been applied.
Returns an ndarray of Float from the given ndarray to each element of which an exp function has been applied.
Returns an ndarray of ComplexFloat from the given ndarray to each element of which an exp function has been applied.
Returns an ndarray of ComplexDouble from the given ndarray to each element of which an exp function has been applied.
Returns a ndarray with an expanded shape.
Returns a ndarray with an expanded shape.
Performs the given action on each element, providing sequential index with the element.
Creates a Grouping source from an ndarray to be used later with one of group-and-fold operations using the specified keySelector function to extract a key from each element.
Groups elements of a given ndarray by the key returned by keySelector for each element, and returns a map where each group key is associated with an ndarray of matching elements.
Groups values returned by valueTransform applied to each element of the given ndarray with the key returned by keySelector applied to each element, and returns a map where each group key is associated with an ndarray of matching values.
Groups elements of the given array by the key returned by keySelector function applied to each element and puts to the destination map each group key associated with an ndarray of corresponding elements.
Groups values returned by the valueTransform function applied to each element of the given ndarray by the key returned by keySelector function applied to the element and puts to the destination map each group key associated with an ndarray of corresponding values.
Transforms this NDArray of ComplexFloat to an NDArray of the imaginary part of complex numbers. Dimensions are preserved.
Transforms this NDArray of ComplexDouble to an NDArray of the imaginary part of complex numbers. Dimensions are preserved.
Returns last index of element, or -1 if the collection does not contain element.
Returns an ndarray of Double from the given ndarray to each element of which a log function has been applied.
Returns an ndarray of Float from the given ndarray to each element of which a log function has been applied.
Returns an ndarray of ComplexFloat from the given ndarray to each element of which a log function has been applied.
Returns an ndarray of ComplexDouble from the given ndarray to each element of which a log function has been applied.
Returns the first element having the largest value according to the provided comparator or null
if there are no elements.
Returns the first element having the smallest value according to the provided comparator or null
if there are no elements.
Transforms this NDArray of ComplexFloat to an NDArray of the real part of complex numbers. Dimensions are preserved.
Transforms this NDArray of ComplexDouble to an NDArray of the real part of complex numbers. Dimensions are preserved.
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original collection.
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original collection.
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element. Returns null if the collection is empty.
Returns an ndarray of Double from the given ndarray to each element of which a sin function has been applied.
Returns an ndarray of Float from the given ndarray to each element of which a sin function has been applied.
Returns an ndarray of ComplexFloat from the given ndarray to each element of which a sin function has been applied.
Returns an ndarray of ComplexDouble from the given ndarray to each element of which a sin function has been applied.
Returns the sum of all values produced by selector function applied to each element in the collection.
Appends all elements to the given destination collection.
Returns a MutableList filled with all elements of this collection.
Returns a mutable set containing all distinct elements from the given collection.
Returns a SortedSet of all elements.