nalgebra/src/traits/rlmul.rs
2013-08-05 10:13:44 +02:00

16 lines
318 B
Rust

/**
* Trait of objects having a right multiplication with another element.
*/
pub trait RMul<V> {
/// Computes self * v
fn rmul(&self, v : &V) -> V;
}
/**
* Trait of objects having a left multiplication with another element.
*/
pub trait LMul<V> {
/// Computes v * self
fn lmul(&self, &V) -> V;
}