devela/num/alg/linear/vector/array/
num.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// devela::num::alg::linear::vector::array::num
//
//!
//

use crate::{Num, NumVector, Vector};

impl<T: Num, const D: usize> NumVector for Vector<T, D> {
    type Scalar = T;
}

impl<T: Num, const D: usize> Num for Vector<T, D> {
    type Inner = [T; D];
    type Out = Self;
    type Rhs = Self;

    fn num_into(self) -> Self::Inner {
        self.coords
    }
}