# Basic functions

xtensor provides the following basic functions for xexpressions and scalars:

Defined in `xtensor/xmath.hpp`

Warning

doxygenfunction: Unable to resolve function “abs” with arguments (E&&) in doxygen xml output for project “xtensor” from directory: ../xml. Potential matches:

    - constexpr unsigned char abs(const unsigned char &x)
    - constexpr unsigned int abs(const unsigned int &x)
    - constexpr unsigned long abs(const unsigned long &x)
    - constexpr unsigned long long abs(const unsigned long long &x)
    - constexpr unsigned short abs(const unsigned short &x)

Warning

doxygenfunction: Cannot find function “fabs” in doxygen xml output for project “xtensor” from directory: ../xml

Warning

doxygenfunction: Cannot find function “fmod” in doxygen xml output for project “xtensor” from directory: ../xml

Warning

doxygenfunction: Cannot find function “remainder” in doxygen xml output for project “xtensor” from directory: ../xml

Warning

doxygenfunction: Cannot find function “fma” in doxygen xml output for project “xtensor” from directory: ../xml

Warning

doxygenfunction: Cannot find function “maximum” in doxygen xml output for project “xtensor” from directory: ../xml

Warning

doxygenfunction: Cannot find function “minimum” in doxygen xml output for project “xtensor” from directory: ../xml

Warning

doxygenfunction: Cannot find function “fmax” in doxygen xml output for project “xtensor” from directory: ../xml

Warning

doxygenfunction: Cannot find function “fmin” in doxygen xml output for project “xtensor” from directory: ../xml

Warning

doxygenfunction: Cannot find function “fdim” in doxygen xml output for project “xtensor” from directory: ../xml

Warning

doxygenfunction: Cannot find function “clip” in doxygen xml output for project “xtensor” from directory: ../xml

Warning

doxygenfunction: Unable to resolve function “sign” with arguments (E&&) in doxygen xml output for project “xtensor” from directory: ../xml. Potential matches:

    - template<class T, class B> auto sign(const xtl::xoptional<T, B> &e)