Trait alga::general::Module

source ·
pub trait Module: AbstractModule<AbstractRing = Self::Ring> + AdditiveGroupAbelian + ClosedMul<Self::Ring> {
    type Ring: RingCommutative;
}
Expand description

A module which overloads the * and + operators.

Required Associated Types§

source

type Ring: RingCommutative

The underlying scalar field.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Module for f32

§

type Ring = f32

source§

impl Module for f64

§

type Ring = f64

source§

impl Module for i8

§

type Ring = i8

source§

impl Module for i16

§

type Ring = i16

source§

impl Module for i32

§

type Ring = i32

source§

impl Module for i64

§

type Ring = i64

source§

impl Module for isize

§

type Ring = isize

source§

impl<N: RingCommutative + NumAssign> Module for Complex<N>

§

type Ring = N

Implementors§