Magnum/Math/FunctionsBatch.h file

Batch functions usable with scalar and vector types.

Contents

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 Corrade::Containers::StridedArrayView1D<const T>& range) -> auto
If any number in the range is a positive or negative infinity.
template<class T>
auto isNan(const Corrade::Containers::StridedArrayView1D<const T>& range) -> auto
If any number in the range is a NaN.
template<class T>
auto min(const Corrade::Containers::StridedArrayView1D<const T>& range) -> T
Minimum of a range.
template<class T>
auto max(const Corrade::Containers::StridedArrayView1D<const T>& range) -> T
Maximum of a range.
template<class T>
auto minmax(const Corrade::Containers::StridedArrayView1D<const T>& range) -> std::pair<T, T>
Minimum and maximum of a range.