OpenKalman
Namespaces | Functions
to_diagonal.hpp File Reference

Definition for to_diagonal function. More...

#include "patterns/patterns.hpp"
#include "linear-algebra/concepts/indexible.hpp"
#include "linear-algebra/traits/get_mdspan.hpp"
#include "linear-algebra/concepts/compares_with_pattern_collection.hpp"
#include "linear-algebra/concepts/pattern_collection_for.hpp"
#include "linear-algebra/concepts/diagonal_matrix.hpp"
#include "linear-algebra/functions/attach_patterns.hpp"
#include "linear-algebra/functions/make_zero.hpp"
#include "linear-algebra/functions/internal/make_wrapped_mdspan.hpp"
#include "linear-algebra/interfaces/stl/to_diagonal_mdspan_policies.hpp"
Include dependency graph for to_diagonal.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 OpenKalman
 The root namespace for OpenKalman.
 

Functions

template<typename Arg , typename P , std::enable_if_t< pattern_collection_for< decltype(patterns::views::diagonal_of(patterns::to_extents(std::declval< P >()))), Arg >, int > = 0>
decltype(auto) constexpr OpenKalman::to_diagonal (Arg &&arg, P &&p)
 Convert a column vector (or any other array with a 1D second index) into a diagonal_matrix. More...
 
template<typename Arg , std::enable_if_t< indexible< Arg >, int > = 0>
decltype(auto) constexpr OpenKalman::to_diagonal (Arg &&arg)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 

Detailed Description

Definition for to_diagonal function.