Expand description
Modules§
Structs§
- Matrix
- A generic matrix struct (over any type with
Add,Sub,Mul,Zero,NegandCopyimplemented). Look atfromto see examples.
Traits§
- Matrix
From - Trait for conversion between matrices of different types.
It only has a
matrix_from()method. This is needed since negative trait bound are not supported in stable Rust yet, so we’ll have a conflict trying to implementFrom. I plan to change this to the default From trait as soon as some sort of specialization system is implemented. You can track this issue here. - Matrix
Into - Sister trait of
MatrixFrom. Basically does the same thing, just with a different syntax. - ToMatrix
- Trait a type must satisfy to be element of a matrix. This is mostly to reduce writing trait bounds afterwards.