multik
multik copied to clipboard
Multidimensional array library for Kotlin
in these objects, functions for arrays are used `toCValues`. This method performs copying of arrays, exploring the possibility of using `CValuesRef` (pinned object) instead.
tests: - `createOneDimensionalArrayFromShortSet` - `convertIterableToShortArrayNDArray` - `createTwoDimensionalArrayFromShortSet` - `createThreeDimensionalArrayFromShortSet` - `createFourDimensionalArrayFromShortSet`
https://github.com/Kotlin/multik/blob/53c59453f3c535b338a5acb83a15469509161bba/multik-core/src/commonTest/kotlin/samples/docs/creation.kt#L53
An overload resolution ambiguity error occurs in `NDArray.kt`, `Transformation.kt`, and `_ArithmeticNDArray.kt`: ```kotlin this@NDArray as NDArray this@NDArray[i] // smart cast doesn't work ```
tests: - `createByteNDArrayWithInitializationFunctionWith4D` - `createIntNDArrayWithInitializationFunctionWith4D` - `createLongNDArrayWithInitializationFunctionWith4D` - `createFloatNDArrayWithInitializationFunctionWith4D` - `createDoubleNDArrayWithInitializationFunctionWith4D` - `createComplexFloatNDArrayWithInitializationFunctionWith4D` - `createComplexDoubleNDArrayWithInitializationFunctionWith4D`
I would like to know how to pad using `createAlignedNDArray`. From my understanding this function takes a list of lists and makes every list the max length and pads the...
I have an NDArray (say idmap1) and would like to compare it with a number to get a boolean mask (numpy boolean style), as shown below: ``` mask = ((idmap1...