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

18 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;
}