devela/num/alg/linear/vector/vec/
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::vec::num
//
//!
//

use crate::{Num, NumVector, Vec, VecVector};

impl<T: Num> NumVector for VecVector<T> {
    type Scalar = T;
}

impl<T: Num> Num for VecVector<T> {
    type Inner = Vec<T>;
    type Out = Self;
    type Rhs = Self;

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