OpenKalman
Functions
from_stat_space.hpp File Reference

Definition for from_stat_space. More...

#include <type_traits>
#include <functional>
#include "values/concepts/value.hpp"
#include "values/classes/operation.hpp"
#include "linear-algebra/coordinates/interfaces/coordinate_descriptor_traits.hpp"
#include "linear-algebra/coordinates/concepts/descriptor.hpp"
#include "linear-algebra/coordinates/concepts/pattern.hpp"
#include "linear-algebra/coordinates/concepts/euclidean_pattern.hpp"
#include "linear-algebra/coordinates/functions/internal/get_index_table.hpp"
#include "linear-algebra/coordinates/functions/internal/get_component_start_indices.hpp"
#include "linear-algebra/coordinates/functions/internal/get_euclidean_component_start_indices.hpp"
#include "linear-algebra/coordinates/functions/internal/get_descriptor_collection_element.hpp"
#include "linear-algebra/coordinates/traits/dimension_of.hpp"
Include dependency graph for from_stat_space.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T , typename Getter , typename L , std::enable_if_t< pattern< T > and values::index< L > and values::value< typename std::invoke_result< Getter, std::size_t >::type >, int > = 0>
constexpr auto OpenKalman::coordinates::from_stat_space (const T &t, const Getter &g, const L &local_index)
 The inverse of to_stat_space. More...
 

Detailed Description

Definition for from_stat_space.

Function Documentation

◆ from_stat_space()

template<typename T , typename Getter , typename L , std::enable_if_t< pattern< T > and values::index< L > and values::value< typename std::invoke_result< Getter, std::size_t >::type >, int > = 0>
constexpr auto OpenKalman::coordinates::from_stat_space ( const T &  t,
const Getter &  g,
const L &  local_index 
)

The inverse of to_stat_space.

Maps coordinates in Euclidean space back into modular space.

Parameters
gAn element getter mapping an index i of type std::size_t to an element value (e.g., std::function<double(std::size_t))
local_indexA local index accessing the coordinate in modular space.