extended_matrix

Crates.ioextended_matrix
lib.rsextended_matrix
version0.9.2
sourcesrc
created_at2021-07-31 09:46:57.062407
updated_at2023-04-06 09:57:31.093498
descriptionA matrix calculation module.
homepage
repositoryhttps://github.com/RomanShushakov/extended_matrix
max_upload_size
id429646
size86,924
(RomanShushakov)

documentation

README

Extended matrix

A matrix calculation module.

Example

#[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));
Commit count: 93

cargo fmt