ndarray Of
fun Multik.ndarrayOf(vararg items: ComplexDouble): D1Array<ComplexDouble>
Content copied to clipboard
Returns a new 1-dimension array from items.
Returns a new 1-dimension array from items.
Samples
import org.jetbrains.kotlinx.multik.api.*
import org.jetbrains.kotlinx.multik.ndarray.data.D2
import org.jetbrains.kotlinx.multik.ndarray.data.D3
import org.jetbrains.kotlinx.multik.ndarray.data.DN
import org.jetbrains.kotlinx.multik.ndarray.data.DataType
import kotlin.test.Test
fun main() {
//sampleStart
val ndarray = mk.ndarrayOf(1, 2, 3)
println(ndarray) // [1, 2, 3]
//sampleEnd
}