/** * @file BHMath.h * * This contains some often used mathematical definitions and functions. * * @author Alexis Tsogias */ #pragma once /** * Calculates the square of a value. * @param a The value. * @return The square of \c a. */ template constexpr V sqr(const V& a) { return a * a; }