extended_matrix 0.9.9

A matrix calculation module.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::{BasicOperationsTrait, Matrix};

pub trait IntoMatrixTrait: BasicOperationsTrait {
    fn into_matrix(&self) -> Matrix<<Self as BasicOperationsTrait>::Value>
    where
        <Self as BasicOperationsTrait>::Value: Copy,
    {
        Matrix {
            shape: self.get_shape().clone(),
            elements: self.get_elements().clone(),
        }
    }
}