MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / iota

Function iota

source/matplot/util/common.cpp:91–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 }
90
91 std::vector<double> iota(double d1, double step, double d2) {
92 vector_1d r;
93 r.reserve(static_cast<size_t>((d2 - d1) / step));
94 for (double i = d1; i <= d2; i += step) {
95 r.emplace_back(i);
96 }
97 return r;
98 }
99
100 std::vector<double> iota(double d1, double d2) { return iota(d1, 1., d2); }
101

Callers 15

axes_typeMethod · 0.85
areaMethod · 0.85
histMethod · 0.85
heatmapMethod · 0.85
pcolorMethod · 0.85
pieMethod · 0.85
paretoMethod · 0.85
stemMethod · 0.85
stem3Method · 0.85
quiver3Method · 0.85
boxplotMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected