Companion

Functions

Link copied to clipboard
fun <N : Nat> of(dim: N, data: Collection<Double>): Vector<N>

Creates a vector from a collection.

fun <N : Nat> of(dim: N, vararg data: Double): Vector<N>

Creates a vector from the given values.

Link copied to clipboard
fun <N : Nat> zero(dim: N): Vector<N>

Creates a zero vector with dimension specified by the Nat type parameter.