|
CUDA_HOSTDEV constexpr | Linspace (T first, T spacing, int size) |
| Constructor.
|
|
template<typename U> |
CUDA_HOSTDEV constexpr | Linspace (const Linspace< U > &) |
|
template<typename U> |
CUDA_HOSTDEV constexpr Linspace< T > & | operator= (const Linspace< U > &) |
|
CUDA_HOSTDEV constexpr T | operator[] (int pos) const |
| Return sample at the specified position.
|
|
CUDA_HOSTDEV constexpr T | first () const |
| First sample.
|
|
CUDA_HOSTDEV constexpr void | first (T first) |
| Set first sample.
|
|
CUDA_HOSTDEV constexpr T | last () const |
| Last sample.
|
|
CUDA_HOSTDEV constexpr T | spacing () const |
| Sample spacing.
|
|
CUDA_HOSTDEV constexpr void | spacing (T spacing) |
| Set Sample Spacing.
|
|
CUDA_HOSTDEV constexpr int | size () const |
| Number of samples.
|
|
CUDA_HOSTDEV constexpr void | resize (int size) |
| Change the number of samples in the sequence.
|
|
CUDA_HOSTDEV constexpr Linspace< T > | subinterval (int start, int stop) const |
| Return a sub-Linspace over the half-open interval [start , stop ).
|
|
CUDA_HOSTDEV constexpr bool | empty () const |
| Check if the sequence contains no samples.
|
|
template<typename U> |
CUDA_HOSTDEV constexpr int | search (U) const |
| Return the position where the specified value would be inserted in the sequence in order to maintain sorted order.
|
|
template<typename T>
class isce3::core::Linspace< T >
A uniformly-spaced sequence of values over some interval.