#include "fitpack_core_c.h"
#include <array>
#include <cstddef>
#include <type_traits>
#include <vector>
Go to the source code of this file.
|
| template<FP_SIZE dims> |
| constexpr bool | operator== (const fpPoint< dims > &a, const fpPoint< dims > &b) |
| |
| template<FP_SIZE dims> |
| constexpr bool | operator!= (const fpPoint< dims > &a, const fpPoint< dims > &b) |
| |
| template<FP_SIZE dims> |
| const FP_REAL * | fpPointData (const std::vector< fpPoint< dims > > &points) |
| | Borrow a vector of points as a Fortran x(dims,m) buffer. No copy, no allocation.
|
| |
| template<FP_SIZE dims> |
| std::vector< FP_REAL > | fpPointFlatten (const std::vector< fpPoint< dims > > &points) |
| | Flatten a vector of points into Fortran x(dims,m) order. One contiguous copy.
|
| |
| template<FP_SIZE dims> |
| std::vector< fpPoint< dims > > | fpPointGather (const std::vector< FP_REAL > &flat) |
| | Rebuild a vector of points from a Fortran x(dims,m) buffer.
|
| |
◆ fpPointData()
template<FP_SIZE dims>
| const FP_REAL * fpPointData |
( |
const std::vector< fpPoint< dims > > & | points | ) |
|
|
inline |
Borrow a vector of points as a Fortran x(dims,m) buffer. No copy, no allocation.
- Returns
nullptr for an empty vector, as the C entry points expect.
◆ fpPointFlatten()
template<FP_SIZE dims>
| std::vector< FP_REAL > fpPointFlatten |
( |
const std::vector< fpPoint< dims > > & | points | ) |
|
|
inline |
Flatten a vector of points into Fortran x(dims,m) order. One contiguous copy.
◆ fpPointGather()
template<FP_SIZE dims>
| std::vector< fpPoint< dims > > fpPointGather |
( |
const std::vector< FP_REAL > & | flat | ) |
|
|
inline |
Rebuild a vector of points from a Fortran x(dims,m) buffer.
◆ operator!=()
template<FP_SIZE dims>
| bool operator!= |
( |
const fpPoint< dims > & | a, |
|
|
const fpPoint< dims > & | b ) |
|
constexpr |
◆ operator==()
template<FP_SIZE dims>
| bool operator== |
( |
const fpPoint< dims > & | a, |
|
|
const fpPoint< dims > & | b ) |
|
constexpr |