Crates.io | extended_matrix |
lib.rs | extended_matrix |
version | 0.9.2 |
source | src |
created_at | 2021-07-31 09:46:57.062407 |
updated_at | 2023-04-06 09:57:31.093498 |
description | A matrix calculation module. |
homepage | |
repository | https://github.com/RomanShushakov/extended_matrix |
max_upload_size | |
id | 429646 |
size | 86,924 |
A matrix calculation module.
#[macro_use]
extern crate extended_matrix;
use extended_matrix::{Matrix, BasicOperationsTrait};
let m_1 = Matrix::create(2, 2, &[1.0, 2.0, 3.0, 4.0]);
let m_2 = Matrix::create(2, 2, &[1.0, 2.0, 3.0, 4.0]);
let m_expected_1 = Matrix::create(2, 2, &[2.0, 4.0, 6.0, 8.0]);
assert_eq!(m_1.add(&m_2), Ok(m_expected_1));