Plotly.cpp 0.1.0
A C++ plotting library for expressive, interactive, real-time & streaming data visualization
Loading...
Searching...
No Matches
linspace.hpp File Reference
#include <vector>
Include dependency graph for linspace.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

auto linspace (double a, double b, int n) -> std::vector< double >
 Create a linearly spaced vector of values between two endpoints.

Function Documentation

◆ linspace()

auto linspace ( double a,
double b,
int n ) -> std::vector< double >

Create a linearly spaced vector of values between two endpoints.

Parameters
aStart value
bEnd value
nNumber of points to generate
Returns
std::vector<double> Vector containing n linearly spaced values from a to b