2018-09-21 01:54:12 +08:00
|
|
|
//use na::{Scalar, DefaultAllocator};
|
|
|
|
//
|
|
|
|
//use traits::{Alloc, Dimension};
|
2018-09-23 20:48:45 +08:00
|
|
|
//use aliases::TVec;
|
2018-09-20 16:50:34 +08:00
|
|
|
|
2018-09-23 20:48:45 +08:00
|
|
|
//pub fn iround<N: Scalar, D: Dimension>(x: &TVec<N, D>) -> TVec<i32, D>
|
2018-09-21 01:54:12 +08:00
|
|
|
// where DefaultAllocator: Alloc<N, D> {
|
|
|
|
// x.map(|x| x.round())
|
|
|
|
//}
|
|
|
|
//
|
|
|
|
//pub fn log2<I>(x: I) -> I {
|
|
|
|
// unimplemented!()
|
|
|
|
//}
|
|
|
|
//
|
2018-09-23 20:48:45 +08:00
|
|
|
//pub fn uround<N: Scalar, D: Dimension>(x: &TVec<N, D>) -> TVec<u32, D>
|
2018-09-21 01:54:12 +08:00
|
|
|
// where DefaultAllocator: Alloc<N, D> {
|
|
|
|
// unimplemented!()
|
|
|
|
//}
|