opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Namespaces | Functions
functors.h File Reference
#include <liboscar/maths/vector.h>
#include <liboscar/utilities/algorithms.h>
#include <algorithm>
#include <concepts>
#include <cstddef>
#include <functional>
Include dependency graph for functors.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  osc
 

Functions

template<typename T , size_t N, std::invocable< const T & > UnaryOperation>
constexpr auto osc::map (const Vector< T, N > &x, UnaryOperation op) -> Vector< decltype(std::invoke(op, x[0])), N >
 
template<typename T , size_t N, std::invocable< const T &, const T & > BinaryOperation>
constexpr auto osc::map (const Vector< T, N > &x, const Vector< T, N > &y, BinaryOperation op) -> Vector< decltype(std::invoke(op, x[0], y[0])), N >
 
template<typename T , size_t N, std::invocable< const T &, const T &, const T & > TernaryOperation>
constexpr auto osc::map (const Vector< T, N > &x, const Vector< T, N > &y, const Vector< T, N > &z, TernaryOperation op) -> Vector< decltype(std::invoke(op, x[0], y[0], z[0])), N >
 
template<size_t N>
constexpr bool osc::all_of (const Vector< bool, N > &v)
 
template<size_t N>
constexpr bool osc::any_of (const Vector< bool, N > &v)
 
template<size_t N>
constexpr bool osc::none_of (const Vector< bool, N > &v)