1#ifndef ISCE_CORE_LINSPACE_ICC
2#error "Linspace.icc is an implementation detail of Linspace.h"
7namespace isce3 {
namespace core {
49 _first = other.
first();
70 return {
operator[](start), _spacing, stop - start};
80 if (val <
first()) {
return 0; }
84 if (val >
first()) {
return 0; }
91template<
typename T,
typename U>
101template<
typename T,
typename U>
106 return !(lhs == rhs);
A uniformly-spaced sequence of values over some interval.
Definition Linspace.h:9
CUDA_HOSTDEV constexpr Linspace< T > subinterval(int start, int stop) const
Return a sub-Linspace over the half-open interval [start, stop).
Definition Linspace.icc:68
CUDA_HOSTDEV static constexpr Linspace< T > from_interval(T first, T last, int size)
Construct a Linspace over the closed interval [first, last].
Definition Linspace.icc:13
CUDA_HOSTDEV constexpr T spacing() const
Sample spacing.
Definition Linspace.h:76
CUDA_HOSTDEV constexpr T operator[](int pos) const
Return sample at the specified position.
Definition Linspace.h:56
CUDA_HOSTDEV constexpr void resize(int size)
Change the number of samples in the sequence.
Definition Linspace.icc:58
CUDA_HOSTDEV constexpr T last() const
Last sample.
Definition Linspace.h:71
CUDA_HOSTDEV constexpr int search(U) const
Return the position where the specified value would be inserted in the sequence in order to maintain ...
Definition Linspace.icc:77
CUDA_HOSTDEV constexpr int size() const
Number of samples.
Definition Linspace.h:86
CUDA_HOSTDEV constexpr T first() const
First sample.
Definition Linspace.h:61
base interpolator is an abstract base class
Definition BinarySearchFunc.cpp:5