fitpack
Modern Fortran library for curve and surface fitting with splines
Loading...
Searching...
No Matches
fpPoint< dims > Struct Template Reference

A point in dims-dimensional space. More...

#include <fpPoint.hpp>

Collaboration diagram for fpPoint< dims >:

Public Member Functions

constexpr FP_REAL & operator[] (FP_SIZE i)
 
constexpr const FP_REAL & operator[] (FP_SIZE i) const
 
constexpr FP_SIZE size () const
 
constexpr FP_REAL * data ()
 
constexpr const FP_REAL * data () const
 
constexpr FP_REAL * begin ()
 
constexpr FP_REAL * end ()
 
constexpr const FP_REAL * begin () const
 
constexpr const FP_REAL * end () const
 
constexpr const FP_REAL * cbegin () const
 
constexpr const FP_REAL * cend () const
 
constexpr FP_REAL & x ()
 
constexpr FP_REAL & y ()
 
constexpr FP_REAL & z ()
 
constexpr const FP_REAL & x () const
 
constexpr const FP_REAL & y () const
 
constexpr const FP_REAL & z () const
 

Public Attributes

std::array< FP_REAL, dims > coord
 Coordinates, in the same order as the Fortran leading dimension.
 

Detailed Description

template<FP_SIZE dims>
struct fpPoint< dims >

A point in dims-dimensional space.

Aggregate-initializable with brace elision: fpPoint<3> p{1.0, 2.0, 3.0};

Member Function Documentation

◆ begin() [1/2]

template<FP_SIZE dims>
FP_REAL * fpPoint< dims >::begin ( )
inlineconstexpr

◆ begin() [2/2]

template<FP_SIZE dims>
const FP_REAL * fpPoint< dims >::begin ( ) const
inlineconstexpr

◆ cbegin()

template<FP_SIZE dims>
const FP_REAL * fpPoint< dims >::cbegin ( ) const
inlineconstexpr

◆ cend()

template<FP_SIZE dims>
const FP_REAL * fpPoint< dims >::cend ( ) const
inlineconstexpr

◆ data() [1/2]

template<FP_SIZE dims>
FP_REAL * fpPoint< dims >::data ( )
inlineconstexpr

◆ data() [2/2]

template<FP_SIZE dims>
const FP_REAL * fpPoint< dims >::data ( ) const
inlineconstexpr

◆ end() [1/2]

template<FP_SIZE dims>
FP_REAL * fpPoint< dims >::end ( )
inlineconstexpr

◆ end() [2/2]

template<FP_SIZE dims>
const FP_REAL * fpPoint< dims >::end ( ) const
inlineconstexpr

◆ operator[]() [1/2]

template<FP_SIZE dims>
FP_REAL & fpPoint< dims >::operator[] ( FP_SIZE i)
inlineconstexpr

◆ operator[]() [2/2]

template<FP_SIZE dims>
const FP_REAL & fpPoint< dims >::operator[] ( FP_SIZE i) const
inlineconstexpr

◆ size()

template<FP_SIZE dims>
FP_SIZE fpPoint< dims >::size ( ) const
inlineconstexpr

◆ x() [1/2]

template<FP_SIZE dims>
FP_REAL & fpPoint< dims >::x ( )
inlineconstexpr

◆ x() [2/2]

template<FP_SIZE dims>
const FP_REAL & fpPoint< dims >::x ( ) const
inlineconstexpr

◆ y() [1/2]

template<FP_SIZE dims>
FP_REAL & fpPoint< dims >::y ( )
inlineconstexpr

◆ y() [2/2]

template<FP_SIZE dims>
const FP_REAL & fpPoint< dims >::y ( ) const
inlineconstexpr

◆ z() [1/2]

template<FP_SIZE dims>
FP_REAL & fpPoint< dims >::z ( )
inlineconstexpr

◆ z() [2/2]

template<FP_SIZE dims>
const FP_REAL & fpPoint< dims >::z ( ) const
inlineconstexpr

Member Data Documentation

◆ coord

template<FP_SIZE dims>
std::array<FP_REAL, dims> fpPoint< dims >::coord

Coordinates, in the same order as the Fortran leading dimension.


The documentation for this struct was generated from the following file: