https://github.com/dimchtz/rust-meshgrid
Meshgrid functionality for Rust.
https://github.com/dimchtz/rust-meshgrid
Last synced: about 1 year ago
JSON representation
Meshgrid functionality for Rust.
- Host: GitHub
- URL: https://github.com/dimchtz/rust-meshgrid
- Owner: DimChtz
- License: mit
- Created: 2017-11-06T17:05:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-06T17:11:54.000Z (over 8 years ago)
- Last Synced: 2025-03-04T18:32:35.651Z (about 1 year ago)
- Language: Rust
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rust-meshgrid (meshgrid) - v0.1.0
Meshgrid functionality for Rust.
# Examples
#### 2D loop.
```rust
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:
```toml
[dependencies]
meshgrid = "0.1.0"
```
and then add this line to your main.rs:
```rust
extern crate meshgrid;
```