Janus 2.0.0
High-performance C++20 dual-mode numerical framework
Loading...
Searching...
No Matches
Spacing.hpp File Reference

Point distribution generators (linspace, cosine, sine, log, geometric). More...

#include "janus/core/JanusConcepts.hpp"
#include "janus/core/JanusError.hpp"
#include "janus/core/JanusTypes.hpp"
#include "janus/math/Arithmetic.hpp"
#include "janus/math/Trig.hpp"
#include <Eigen/Dense>
#include <numbers>
Include dependency graph for Spacing.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  janus

Functions

template<typename T>
JanusVector< T > janus::linspace (const T &start, const T &end, int n)
 Generates linearly spaced vector.
template<typename T>
JanusVector< T > janus::cosine_spacing (const T &start, const T &end, int n)
 Generates cosine spaced vector (denser at ends).
template<typename T>
JanusVector< T > janus::sinspace (const T &start, const T &end, int n, bool reverse_spacing=false)
 Generates sine spaced vector (denser at start by default).
template<typename T>
JanusVector< T > janus::logspace (const T &start, const T &end, int n)
 Generates logarithmically spaced vector (base 10).
template<typename T>
JanusVector< T > janus::geomspace (const T &start, const T &end, int n)
 Generates geometrically spaced vector.

Detailed Description

Point distribution generators (linspace, cosine, sine, log, geometric).