feat: integrates with nalgebra

This commit is contained in:
Volodymyr Orlov
2020-04-06 19:16:37 -07:00
parent eb0c36223f
commit b068295dac
6 changed files with 66 additions and 18 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ use std::fmt::{Debug, Display};
use num_traits::{Float, FromPrimitive};
use rand::prelude::*;
pub trait FloatExt: Float + FromPrimitive + Debug + Display {
pub trait FloatExt: Float + FromPrimitive + Debug + Display + Copy {
fn copysign(self, sign: Self) -> Self;