matrix

Crates.iomatrix
lib.rsmatrix
version0.22.0
sourcesrc
created_at2014-11-20 21:07:01.842304
updated_at2018-12-15 07:37:00.54933
descriptionThe package provides a matrix laboratory.
homepagehttps://github.com/stainless-steel/matrix
repositoryhttps://github.com/stainless-steel/matrix
max_upload_size
id151
size87,535
Owners (github:buoyantio:owners)

documentation

https://docs.rs/matrix

README

Matrix Package Documentation Build

The package provides a matrix laboratory.

Example

#[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;
    ]
);

Contribution

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.

Commit count: 327

cargo fmt