Do not mantion the double-dispatch on the doc.

This commit is contained in:
Sébastien Crozet 2014-11-26 14:36:50 +01:00
parent b7af46377d
commit 9d5d3f49f9
2 changed files with 2 additions and 35 deletions

View File

@ -51,20 +51,4 @@ an optimized set of tools for computer graphics and physics. Those features incl
* Dynamically sized (square or rectangular) matrix: `DMat`.
* A few methods for data analysis: `Cov`, `Mean`.
* Almost one trait per functionality: useful for generic programming.
* Operator overloading using the double trait dispatch
[trick](http://smallcultfollowing.com/babysteps/blog/2012/10/04/refining-traits-slash-impls/).
For example, the following works:
```rust
extern crate "nalgebra" as na;
use na::{Vec3, Mat3};
fn main() {
let v: Vec3<f64> = na::zero();
let m: Mat3<f64> = na::one();
let _ = m * v; // matrix-vector multiplication.
let _ = v * m; // vector-matrix multiplication.
let _ = m * m; // matrix-matrix multiplication.
let _ = v * 2.0f64; // vector-scalar multiplication.
}
* Operator overloading using multidispatch.

View File

@ -52,24 +52,7 @@ an optimized set of tools for computer graphics and physics. Those features incl
* Dynamically sized (square or rectangular) matrix: `DMat`.
* A few methods for data analysis: `Cov`, `Mean`.
* Almost one trait per functionality: useful for generic programming.
* Operator overloading using the double trait dispatch
[trick](http://smallcultfollowing.com/babysteps/blog/2012/10/04/refining-traits-slash-impls/).
For example, the following works:
```rust
extern crate "nalgebra" as na;
use na::{Vec3, Mat3};
fn main() {
let v: Vec3<f64> = na::zero();
let m: Mat3<f64> = na::one();
let _ = m * v; // matrix-vector multiplication.
let _ = v * m; // vector-matrix multiplication.
let _ = m * m; // matrix-matrix multiplication.
let _ = v * 2.0f64; // vector-scalar multiplication.
}
```
* Operator overloading using multidispatch.
## Compilation
You will need the last nightly build of the [rust compiler](http://www.rust-lang.org)