meshgrid

Crates.iomeshgrid
lib.rsmeshgrid
version0.1.0
sourcesrc
created_at2017-11-06 17:11:16.083343
updated_at2017-11-06 17:11:16.083343
descriptionMeshgrid functionality for Rust.
homepage
repositoryhttps://github.com/DimChtz/rust-meshgrid
max_upload_size
id38369
size1,836
(DimChtz)

documentation

README

rust-meshgrid (meshgrid) - v0.1.0

Meshgrid functionality for Rust.

Examples

2D loop.

for &(i, j) in meshgrid::new(1..3, 1..5).iter() {

        println!("[{}, {}]", i, j);
        
        // Do-stuff with i, j
}

Installation

Add this line to your Cargo.toml:

[dependencies]
meshgrid = "0.1.0"

and then add this line to your main.rs:

extern crate meshgrid;
Commit count: 6

cargo fmt