wuzp
Wrong Unit? Zero Points! Compile-time checks for units, coordinate systems and points vs. vectors.
Loading...
Searching...
No Matches
TypeMatrix.hpp File Reference
#include <algorithm>
#include <cstddef>
#include <tuple>
#include <utility>
#include "wuzp/core/MatrixSize.hpp"
#include "wuzp/core/helpers.hpp"
#include "wuzp/core/traits.hpp"

Go to the source code of this file.

Classes

struct  wuzp::ToRowsImpl< ColsV_, std::tuple< Ts... >, std::index_sequence< RowIs... > >
struct  wuzp::ToColsImpl< ColsV_, std::tuple< Ts... >, std::index_sequence< ColIs... > >
struct  wuzp::AddTwoTuplesImpl< std::tuple< TsLhs... >, std::tuple< TsRhs... >, std::index_sequence< Is... > >
struct  wuzp::AddTwoTuples< std::tuple< TsLhs... >, std::tuple< TsRhs... > >
struct  wuzp::SubtractTwoTuplesImpl< std::tuple< TsLhs... >, std::tuple< TsRhs... >, std::index_sequence< Is... > >
struct  wuzp::SubtractTwoTuples< std::tuple< TsLhs... >, std::tuple< TsRhs... > >
struct  wuzp::MultiplyTwoTuplesImpl< std::tuple< TsLhs... >, std::tuple< TsRhs... >, std::index_sequence< Is... > >
struct  wuzp::MultiplyTwoTuples< std::tuple< TsLhs... >, std::tuple< TsRhs... > >
struct  wuzp::ContractTwoTuplesImpl< std::tuple< TsLhs... >, std::tuple< TsRhs... >, std::index_sequence< Is... > >
struct  wuzp::ContractTwoTuples< std::tuple< TsLhs... >, std::tuple< TsRhs... > >
struct  wuzp::ContractTuples< std::tuple< TuplesLhs... >, std::tuple< TuplesRhs... >, std::index_sequence< Is... > >
struct  wuzp::TypeMatrixImpl< MatrixSize< RowsV_, ColsV_ >, std::tuple< Types... > >
struct  wuzp::CreateTypeMatrix< RowsV_, ColsV_, Type0, Types >
struct  wuzp::CreateTypeMatrix< RowsV_, ColsV_, TypeT_ >
struct  wuzp::IsHomogeneous< TypeMatrixImpl< MatrixSize< RowsV_, ColsV_ >, Types > >
struct  wuzp::GetTypes< TypeMatrixImpl< MatrixSize< RowsV_, ColsV_ >, Types > >
struct  wuzp::GetType< TypeMatrixImpl< MatrixSize< RowsV_, ColsV_ >, Types > >
struct  wuzp::Dimension< TypeMatrixImpl< MatrixSize< 1, 1 >, Types > >
struct  wuzp::Dimension< TypeMatrixImpl< MatrixSize< RowsV_, 1 >, Types > >
struct  wuzp::Dimension< TypeMatrixImpl< MatrixSize< 1, ColsV_ >, Types > >
struct  wuzp::Dimension< TypeMatrixImpl< MatrixSize< RowsV_, ColsV_ >, Types > >
struct  wuzp::Rows< TypeMatrixImpl< MatrixSize< RowsV_, ColsV_ >, Types > >
struct  wuzp::Cols< TypeMatrixImpl< MatrixSize< RowsV_, ColsV_ >, Types > >
struct  wuzp::Element< TypeMatrixImpl< MatrixSize< RowsV_, ColsV_ >, std::tuple< Types... > >, ElementRowIdV_, ElementColIdV_ >
struct  wuzp::BlockImpl< ColsV_, BlockRowIdV_, BlockColIdV_, BlockRowsV_, BlockColsV_, std::tuple< Ts... >, std::index_sequence< BlockRowIs... > >
struct  wuzp::Block< TypeMatrixImpl< MatrixSize< RowsV_, ColsV_ >, std::tuple< Types... > >, BlockRowIdV_, BlockColIdV_, BlockRowsV_, BlockColsV_ >
struct  wuzp::Sum< TypeMatrixImpl< MatrixSize< RowsLhsV_, ColsLhsV_ >, std::tuple< TypesLhs... > >, TypeMatrixImpl< MatrixSize< RowsRhsV_, ColsRhsV_ >, std::tuple< TypesRhs... > > >
struct  wuzp::Difference< TypeMatrixImpl< MatrixSize< RowsLhsV_, ColsLhsV_ >, std::tuple< TypesLhs... > >, TypeMatrixImpl< MatrixSize< RowsRhsV_, ColsRhsV_ >, std::tuple< TypesRhs... > > >
struct  wuzp::Product< TypeMatrixImpl< MatrixSize< RowsLhsV_, ColsLhsV_ >, std::tuple< TypesLhs... > >, TypeRhs >
struct  wuzp::Product< TypeLhs, TypeMatrixImpl< MatrixSize< RowsRhsV_, ColsRhsV_ >, std::tuple< TypesRhs... > > >
struct  wuzp::Product< TypeMatrixImpl< MatrixSize< RowsLhsV_, ColsLhsV_ >, std::tuple< TypesLhs... > >, TypeMatrixImpl< MatrixSize< 1, 1 >, std::tuple< TypeRhs > > >
struct  wuzp::Product< TypeMatrixImpl< MatrixSize< 1, 1 >, std::tuple< TypeLhs > >, TypeMatrixImpl< MatrixSize< RowsRhsV_, ColsRhsV_ >, std::tuple< Type0Rhs, Type1Rhs, TypesRhs... > > >
struct  wuzp::Product< TypeMatrixImpl< MatrixSize< RowsLhsV_, ColsLhsV_ >, std::tuple< Type0Lhs, Type1Lhs, TypesLhs... > >, TypeMatrixImpl< MatrixSize< RowsRhsV_, ColsRhsV_ >, std::tuple< Type0Rhs, Type1Rhs, TypesRhs... > > >
struct  wuzp::InnerProduct< TypeMatrixImpl< MatrixSize< RowsLhsV_, ColsLhsV_ >, std::tuple< TypesLhs... > >, TypeMatrixImpl< MatrixSize< RowsRhsV_, ColsRhsV_ >, std::tuple< TypesRhs... > > >
struct  wuzp::CreateHomogeneousTupleImpl< N, T >
struct  wuzp::CreateHomogeneousTupleImpl< 0, T >
struct  wuzp::CreateHomogeneousTuple< N, T >
struct  wuzp::OuterProduct< TypeMatrixImpl< MatrixSize< RowsLhsV_, ColsLhsV_ >, std::tuple< TypesLhs... > >, TypeMatrixImpl< MatrixSize< RowsRhsV_, ColsRhsV_ >, std::tuple< TypesRhs... > > >
struct  wuzp::DotProduct< TypeMatrixImpl< MatrixSize< RowsLhsV_, ColsLhsV_ >, std::tuple< TypesLhs... > >, TypeMatrixImpl< MatrixSize< RowsRhsV_, ColsRhsV_ >, std::tuple< TypesRhs... > > >
struct  wuzp::CrossProduct< TypeMatrixImpl< MatrixSize< RowsLhsV_, ColsLhsV_ >, std::tuple< TypesLhs... > >, TypeMatrixImpl< MatrixSize< RowsRhsV_, ColsRhsV_ >, std::tuple< TypesRhs... > > >
struct  wuzp::Division< TypeMatrixImpl< MatrixSize< RowsLhsV_, ColsLhsV_ >, std::tuple< TypesLhs... > >, TypeRhs >
struct  wuzp::Division< TypeMatrixImpl< MatrixSize< RowsLhsV_, ColsLhsV_ >, std::tuple< TypesLhs... > >, TypeMatrixImpl< MatrixSize< 1, 1 >, std::tuple< TypeRhs > > >
struct  wuzp::Division< TypeMatrixImpl< MatrixSize< RowsLhsV_, ColsLhsV_ >, std::tuple< TypesLhs... > >, TypeMatrixImpl< MatrixSize< RowsRhsV_, ColsRhsV_ >, std::tuple< TypesRhs... > > >
struct  wuzp::CwiseInverse< TypeMatrixImpl< MatrixSize< RowsV_, ColsV_ >, std::tuple< Types... > > >
 The elementwise reciprocal. The matrix inverse is only defined for matrices of units (see Units.hpp). More...
struct  wuzp::Power< TypeMatrixImpl< MatrixSize< RowsV_, ColsV_ >, std::tuple< Types... > >, ExponentT_ >
 The elementwise power, like the product of type matrices, which is elementwise too, e.g. the units of pow<2>() of quantities. More...
struct  wuzp::Transpose< TypeMatrixImpl< MatrixSize< RowsV_, ColsV_ >, std::tuple< Types... > > >
struct  wuzp::DiagonalTypeMatrixImpl< SizeV_, ZeroType, OneType, std::index_sequence< Is... > >

Namespaces

namespace  wuzp

Typedefs

template<size_t ColsV_, typename... Ts>
using wuzp::ToRows = ToRowsImpl<ColsV_, std::tuple<Ts...>, std::make_index_sequence<sizeof...(Ts) / ColsV_>>
template<size_t ColsV_, typename... Ts>
using wuzp::ToCols = ToColsImpl<ColsV_, std::tuple<Ts...>, std::make_index_sequence<ColsV_>>
template<int SizeV_, typename ZeroType, typename OneType>
using wuzp::DiagonalTypeMatrix
template<int RowsV_, int ColsV_, typename... Types>
using wuzp::TypeMatrix = typename CreateTypeMatrix<RowsV_, ColsV_, Types...>::type
 A matrix storing types at compile-time.
template<int RowsV_, typename... Types>
using wuzp::TypeVector = typename CreateTypeMatrix<RowsV_, 1, Types...>::type
 A vector storing types at compile-time.
template<typename TypeT_>
using wuzp::TypeScalar = typename CreateTypeMatrix<1, 1, TypeT_>::type
 A scalar storing a type at compile-time.