| 112:ed8124f1af1d | 113:d97fcf22a61c |
|---|---|
| 224 self.norm(self.norm_exponent()) | 224 self.norm(self.norm_exponent()) |
| 225 } | 225 } |
| 226 | 226 |
| 227 // fn similar_origin(&self) -> Self; | 227 // fn similar_origin(&self) -> Self; |
| 228 | 228 |
| 229 fn is_zero(&self) -> bool; | 229 fn is_zero(&self) -> bool { |
| 230 self.norm_() == F::ZERO | |
| 231 } | |
| 230 } | 232 } |
| 231 | 233 |
| 232 pub trait HasDual<F: Num = f64>: Normed<F> { | 234 pub trait HasDual<F: Num = f64>: Normed<F> { |
| 233 type DualSpace: Normed<F>; | 235 type DualSpace: Normed<F>; |
| 234 } | 236 } |