wuzp
Wrong Unit? Zero Points! Compile-time checks for units, coordinate systems and points vs. vectors.
Loading...
Searching...
No Matches
wuzp::CwiseFunction< T, FunctionT_ > Struct Template Reference

A function applied to every element of a matrix, like Eigen's DenseBase::unaryExpr(): value(impl, function) returns the matrix of the results. More...

#include <wuzp/core/traits.hpp>

Detailed Description

template<typename T, typename FunctionT_>
struct wuzp::CwiseFunction< T, FunctionT_ >

A function applied to every element of a matrix, like Eigen's DenseBase::unaryExpr(): value(impl, function) returns the matrix of the results.

FunctionT_ is a function object, e.g. a lambda, that maps a value of the value type to a value of the value type, so the result has the value type and the size of the matrix. The elementwise functions of quantities, e.g. pow<1, 2>() of a matrix, compute their values with it, so that they compute the same with every value matrix backend.

Definition at line 203 of file traits.hpp.


The documentation for this struct was generated from the following file: