alpaqa 1.1.0a1
Nonconvex constrained optimization
Loading...
Searching...
No Matches
span.hpp File Reference
#include <Eigen/Core>
#include <span>
#include <type_traits>
Include dependency graph for span.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  alpaqa
namespace  alpaqa::detail

Functions

template<class Derived>
requires (Derived::ColsAtCompileTime == 1)
auto as_span (Eigen::DenseBase< Derived > &v)
 Convert an Eigen vector view to a std::span.
template<class Derived>
requires (Derived::ColsAtCompileTime == 1)
auto as_span (Eigen::DenseBase< Derived > &&v)
 Convert an Eigen vector view to a std::span.
template<class Derived>
requires (Derived::ColsAtCompileTime == 1)
auto as_span (const Eigen::DenseBase< Derived > &v)
 Convert an Eigen vector view to a std::span.
template<class T, size_t E>
auto as_vec (std::span< T, E > s)
 Convert a std::span to an Eigen::Vector view.

Variables

template<Eigen::Index R>
constexpr auto to_std_extent
template<size_t E>
constexpr auto to_eigen_extent