typelevel-tensor-0.1.0.4: Tensors whose ranks and dimensions type-inferred and type-checked.

Safe HaskellSafe-Infered

Data.Tensor.TypeLevel.Axis

Synopsis

Documentation

dimension :: Vector v => Axis v -> IntSource

The dimension of the vector space the axis belongs to.

next :: Vector v => Axis v -> Axis vSource

The next axis under the Law of Cycles.

prev :: Vector v => Axis v -> Axis vSource

The previous axis under the Law of Cycles.

all :: Vector v => Axis v -> [Axis v]Source

All the axes belonging to the dimension.

allFrom :: Vector v => Axis v -> [Axis v]Source

All the axes belonging to the dimension, starting from the argument and followed by the Law of Cycles.

others :: Vector v => Axis v -> [Axis v]Source

All the axes belonging to the dimension but the argument itself, in the order of the Law of Cycles.