ModuleBasisDecomposition

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

A functional interface for decomposing a module element into coefficients with respect to a module basis.

Type Parameters

Number

The type of scalar coefficients (from the underlying ring).

Vector

The type of module elements being decomposed.

Index

The type used to index basis elements.

Inheritors

Types

Link copied to clipboard

A finite version of ModuleBasisDecomposition indexed by UInt.

Link copied to clipboard
interface Result<out Number, in Index>

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]\]

Functions

Link copied to clipboard

Decomposes a vector into coefficients with respect to the basis.

Link copied to clipboard

Converts a ModuleBasisDecomposition to a VectorSpaceBasisDecomposition over a field by dividing each coefficient by the common scalar.