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