Registry / utility / linspace

linspace

JSON →
library0.2.7rscratesunverified

Turns a range into a linearly spaced sequence of values.

# Cargo.toml [dependencies] linspace = "0.2.7"
INSTALL
IMPORT
SIG · LINSPACE
L
linspace
utilityrustv0.2.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Linspace
use linspace::Linspace;

Generate 5 linearly spaced values between 0 and 1.

use linspace::Linspace; fn main() { let values: Vec<f64> = Linspace::new(0.0, 1.0, 5).collect(); println!("{:?}", values); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.7latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
linspace — cargo add linspace · libregistry