Commit 41d4d98baed7c6679eff13770edeec00079a3cd1

Authored by Georg Hopp
1 parent 8274976d

More Vector tests

Showing 1 changed file with 2 additions and 0 deletions
... ... @@ -141,6 +141,8 @@ fn _vector() {
141 141 println!("{:>14} : {}", format!("v1 * {}", s), v1.mul(&s));
142 142 println!("{:>14} : {}", "norm v1", v1.norm());
143 143 println!("{:>14} : {}", "abs norm v1", v1.norm().abs());
  144 + println!("{:>14} : {}", "abs v1", v1.abs());
  145 + println!("{:>14} : {}", "norm * abs", v1.norm().mul(&v1.abs()));
144 146 println!("{:>14} : {}", "distance v1 v2", v1.distance(v2));
145 147 println!("{:>14} : {}", "distance v2 v1", v2.distance(v1));
146 148 println!("{:>14} : {}", "v1 dot v2", v1.dot(v2));
... ...
Please register or login to post a comment