Magnum/Math/FunctionsBatch.h file

Batch functions usable with scalar and vector types.

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::Math
Math library.

Batch functions

These functions process an ubounded range of values, as opposed to single vectors or scalars.

template<class T>
auto isInf(const Containers::StridedArrayView1D<const T>& range) -> auto
If any number in the range is a positive or negative infinity.
template<class Iterable, class T = decltype(Implementation::stridedArrayViewTypeFor(std::declval<Iterable && >()))>
auto isInf(Iterable&& range) -> auto new in 2020.06
template<class T>
auto isInf(std::initializer_list<T> list) -> auto
template<class T, std::size_t size>
auto isInf(const T(&array)[size]) -> auto
template<class T>
auto isNan(const Containers::StridedArrayView1D<const T>& range) -> auto
If any number in the range is a NaN.
template<class Iterable, class T = decltype(Implementation::stridedArrayViewTypeFor(std::declval<Iterable && >()))>
auto isNan(Iterable&& range) -> auto new in 2020.06
template<class T>
auto isNan(std::initializer_list<T> list) -> auto
template<class T, std::size_t size>
auto isNan(const T(&array)[size]) -> auto
template<class T>
auto min(const Containers::StridedArrayView1D<const T>& range) -> T
Minimum of a range.
template<class Iterable, class T = decltype(Implementation::stridedArrayViewTypeFor(std::declval<Iterable && >()))>
auto min(Iterable&& range) -> T new in 2020.06
template<class T>
auto min(std::initializer_list<T> list) -> T
template<class T, std::size_t size>
auto min(const T(&array)[size]) -> T
template<class T>
auto max(const Containers::StridedArrayView1D<const T>& range) -> T
Maximum of a range.
template<class Iterable, class T = decltype(Implementation::stridedArrayViewTypeFor(std::declval<Iterable && >()))>
auto max(Iterable&& range) -> T new in 2020.06
template<class T>
auto max(std::initializer_list<T> list) -> T
template<class T, std::size_t size>
auto max(const T(&array)[size]) -> T
template<class T>
auto minmax(const Containers::StridedArrayView1D<const T>& range) -> Containers::Pair<T, T>
Minimum and maximum of a range.
template<class Iterable, class T = decltype(Implementation::stridedArrayViewTypeFor(std::declval<Iterable && >()))>
auto minmax(Iterable&& range) -> Containers::Pair<T, T> new in 2020.06
template<class T>
auto minmax(std::initializer_list<T> list) -> Containers::Pair<T, T>
template<class T, std::size_t size>
auto minmax(const T(&array)[size]) -> Containers::Pair<T, T>