Celeritas 0.6.0-47+develop.b3cbb238
Loading...
Searching...
No Matches
Functions
VectorUtils.cc File Reference
#include "VectorUtils.hh"
#include "corecel/Assert.hh"
#include "corecel/Types.hh"
#include "corecel/cont/Range.hh"
#include "Interpolator.hh"

Functions

std::vector< doubleceleritas::linspace (double start, double stop, size_type n)
 Return evenly spaced numbers over a given interval.
 
std::vector< doubleceleritas::geomspace (double start, double stop, size_type n)
 Return logarithmically spaced numbers over a given interval.
 

Function Documentation

◆ geomspace()

std::vector< double > celeritas::geomspace ( double  start,
double  stop,
size_type  n 
)

Return logarithmically spaced numbers over a given interval.

This is a geometric progression of values, where the ratio between each neighbor is constant.