Benign cargo Download

linspace.rs

SHA-256a21e940634d5bd807f8b6e1060169cedfd8e3b4d4c14440e4cdb37e18a51ea25
Malecule∅

Evidence

imports std::ops::Add lines 1–7
1use super::misc::ToFloat;
2use std::ops::{Add, Sub, Div, Mul};
3
4/// An iterator of a sequence of evenly spaced floats.
5///
6/// Iterator element type is `F`.
7pub struc …
English function-word token "for" lines 10–18
10:7… dex: usize,
11 len: usize,
12}
13
14impl<F> Iterator for Linspace<F>
15 where F: Copy + Add<Output=F> + Mul<Output=F>,
16 usize: ToFloat<F>,
17{
18 …
English function-word token "the" lines 23–27
23:12… None
24 } else {
25 // Calculate the value just like numpy.linspace does
26 let i = self.index;
27 self.index += 1 …
English function-word token "and" lines 60–64
60:25… n` elements, where the first
61/// element is `a` and the last element is `b`.
62///
63/// Iterator element type is `F`, where `F` must be
64/// either `f3 …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.