Crates.io | matrix |
lib.rs | matrix |
version | 0.22.0 |
source | src |
created_at | 2014-11-20 21:07:01.842304 |
updated_at | 2018-12-15 07:37:00.54933 |
description | The package provides a matrix laboratory. |
homepage | https://github.com/stainless-steel/matrix |
repository | https://github.com/stainless-steel/matrix |
max_upload_size | |
id | 151 |
size | 87,535 |
The package provides a matrix laboratory.
#[macro_use]
extern crate matrix;
use matrix::prelude::*;
let mut sparse = Compressed::zero((2, 4));
sparse.set((0, 0), 42.0);
sparse.set((1, 3), 69.0);
let dense = Conventional::from(&sparse);
assert!(
&*dense == &*matrix![
42.0, 0.0, 0.0, 0.0;
0.0, 0.0, 0.0, 69.0;
]
);
Your contribution is highly appreciated. Do not hesitate to open an issue or a pull request. Note that any contribution submitted for inclusion in the project will be licensed according to the terms given in LICENSE.md.