invoke

@JvmName(name = "create")
operator fun invoke(vararg shape: Int): F64Array

Creates a new array with the specified shape.

Return

the created array

Parameters

shape

the shape of the array


@JvmName(name = "create")
operator fun invoke(rows: Int, cols: Int): F64TwoAxisArray

Creates a new array with the specified shape.

Since

1.2.0

Parameters

rows

the number of rows

cols

the number of columns


@JvmName(name = "create1D")
operator fun invoke(size: Int, init: (Int) -> Double): F64FlatArray

Creates a new flat array with the specified size and initializes it with the given function.

Return

the created array

Parameters

size

the size of the array

init

the initialization function


@JvmName(name = "create2D")
operator fun invoke(numRows: Int, numColumns: Int, init: (Int, Int) -> Double): F64TwoAxisArray

Creates a new 2D array with the specified shape and initializes it with the given function.

Return

the created array

Parameters

numRows

the number of rows

numColumns

the number of columns

init

the initialization function


@JvmName(name = "create3D")
operator fun invoke(x: Int, y: Int, z: Int, init: (Int, Int, Int) -> Double): F64Array

Creates a new 3D array with the specified shape and initializes it with the given function.

Return

the created array

Parameters

x

the size of the first dimension

y

the size of the second dimension

z

the size of the third dimension

init

the initialization function