[go: up one dir, main page]

Trait VectorSpace

Source
pub trait VectorSpace: Module<Ring = Self::Field> {
    type Field: Field;
}
Expand description

A vector space has a module structure over a field instead of a ring.

Required Associated Types§

Source

type Field: Field

The underlying scalar field.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl VectorSpace for f32

Source§

impl VectorSpace for f64

Source§

impl<N: Field + NumAssign> VectorSpace for Complex<N>

Source§

type Field = N

Implementors§