Result

fun interface Result<out Number, in Index>(source)

The result of decomposing a vector: provides access to scalar coefficients by index. The result satisfies formula \[input = \sum_{index\ i} result[i] \cdot basis[i]\]

Type Parameters

Number

The type of scalar coefficients.

Index

The type used to index coefficients.

Functions

Link copied to clipboard
abstract operator fun get(index: Index): Number

Returns the coefficient at the given index.