cotila  1.2.1
A compile time linear algebra system
Functions
math.h File Reference

Mathematical operations on scalar values. More...

#include <cotila/detail/type_traits.h>
#include <cotila/detail/assert.h>
#include <type_traits>

Go to the source code of this file.

Functions

constexpr double cotila::sqrt (double x)
 computes the square root More...
 
constexpr float cotila::sqrt (float x)
 computes the square root More...
 
template<typename T >
constexpr detail::remove_complex_t< T > cotila::abs (T x)
 computes the absolute value More...
 
constexpr double cotila::exponentiate (double x, int n)
 computes exponents More...
 
constexpr double cotila::nthroot (double x, int n)
 computes the $n$th root More...
 
template<typename T >
constexpr T cotila::conj (T x)
 computes the complex conjugate More...