api / koma.internal.default.generated.ndarray / DefaultByteNDArrayFactory

DefaultByteNDArrayFactory

class DefaultByteNDArrayFactory :NumericalNDArrayFactory<Byte>

Constructors

Name Summary
<init> DefaultByteNDArrayFactory()

Functions

Name Summary
createGeneric fun createGeneric(lengths:IntArray, filler: (IntArray) ->Byte):DefaultByteNDArray
Generate an ND container of the requested shape without initializing its contents.
ones fun ones(vararg lengths:Int):DefaultByteNDArray
Creates a 1 initialized ND container of the requested shape
rand fun rand(vararg lengths:Int):DefaultByteNDArray
Creates a ND container of uniform 0-1 random samples
randn fun randn(vararg lengths:Int):DefaultByteNDArray
Creates a ND container of unit-normal random samples
zeros fun zeros(vararg lengths:Int):DefaultByteNDArray
Generate a zero initialized ND container of the requested shape

Extension Functions

Name Summary
create funNumericalNDArrayFactory<Byte>.create(vararg lengths:Int, filler: (idx:IntArray) ->Byte):NDArray<Byte>
fun <T>GenericNDArrayFactory<T>.create(vararg lengths:Int, filler: (idx:IntArray) ->T):DefaultGenericNDArray<T>