iDynTree/MatrixView.h file

Namespaces

namespace iDynTree
namespace iDynTree::MatrixViewInternal

Classes

template<typename T, typename = void>
struct iDynTree::MatrixViewInternal::has_IsRowMajor
has_IsRowMajor is used to build a type-dependent expression that check if an element has IsRowMajor argument.
template<typename T>
struct iDynTree::MatrixViewInternal::has_IsRowMajor<T, SpanUtils::void_t<decltype(T::IsRowMajor)>>
has_IsRowMajor is used to build a type-dependent expression that check if an element has IsRowMajor argument.
template<class ElementType>
class iDynTree::MatrixView
MatrixView implements a view interface of Matrices.

Functions

template<class ElementType>
auto make_matrix_view(ElementType* ptr, typename MatrixView<ElementType>::index_type rows, typename MatrixView<ElementType>::index_type cols, const MatrixStorageOrdering& order = MatrixStorageOrdering::RowMajor) -> IDYNTREE_CONSTEXPR MatrixView<ElementType>
template<class Container, std::enable_if_t<MatrixViewInternal::has_IsRowMajor<Container>::value||std::is_same<MatrixView<typename Container::value_type>, Container>::value, int> = 0>
auto make_matrix_view(Container& cont) -> IDYNTREE_CONSTEXPR MatrixView<typename Container::value_type>
template<class Container, std::enable_if_t<MatrixViewInternal::has_IsRowMajor<Container>::value||std::is_same<MatrixView<const typename Container::value_type>, Container>::value, int> = 0>
auto make_matrix_view(const Container& cont) -> IDYNTREE_CONSTEXPR MatrixView<const typename Container::value_type>
template<class Container, std::enable_if_t<!MatrixViewInternal::has_IsRowMajor<Container>::value && !std::is_same<MatrixView<typename Container::value_type>, Container>::value, int> = 0>
auto make_matrix_view(Container& cont, const MatrixStorageOrdering& order = MatrixStorageOrdering::RowMajor) -> IDYNTREE_CONSTEXPR MatrixView<typename Container::value_type>
template<class Container, std::enable_if_t<!MatrixViewInternal::has_IsRowMajor<Container>::value && !std::is_same<MatrixView<typename Container::value_type>, Container>::value, int> = 0>
auto make_matrix_view(const Container& cont, const MatrixStorageOrdering& order = MatrixStorageOrdering::RowMajor) -> IDYNTREE_CONSTEXPR MatrixView<const typename Container::value_type>

Defines

#define IDYNTREE_CONSTEXPR