Package org. jetbrains. kotlinx. multik. ndarray. operations
Types
Functions
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.
Create a new array as division of this by other.
Divide by other element-wise. Inplace operator.
Divide this by other. Inplace operator.
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.
Returns last index of element, or -1 if the collection does not contain element.
Returns the first element having the largest value according to the provided comparator or null
if there are no elements.
Create a new array as difference between this and other.
Subtract other element-wise. Inplace operator.
Subtract other from this. Inplace operator.
Returns the first element having the smallest value according to the provided comparator or null
if there are no elements.
Create a new array as the sum of this and other.
Add other element-wise. Inplace operator.
Add other to this. Inplace operator.
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 the sum of all values produced by selector function applied to each element in the collection.
Create a new array as product of this and other.
Multiply other element-wise. Inplace operator.
Multiply this by other. Inplace operator.
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.