Result

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

The result of decomposing a module element: provides a common scalar and per-index coefficients. The result satisfies formula \[scalar \cdot input = \sum_{index\ i} result[i] \cdot basis[i]\]

Type Parameters

Number

The type of scalar coefficients.

Index

The type used to index coefficients.

Properties

Link copied to clipboard
abstract val scalar: Number

The common scalar factor for all coefficients.

Functions

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

Returns the coefficient at the given index.