Back to index

texmacs  1.0.7.15
Classes | Functions
operators.hpp File Reference
#include "math_tree.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  copy_op
struct  neg_op
struct  add_op
struct  sub_op
struct  mul_op
struct  div_op
struct  sqrt_op
struct  exp_op
struct  log_op
struct  pow_op
struct  cst_pow_op
struct  cos_op
struct  sin_op
struct  tan_op
struct  derive_op

Functions

template<typename C >
C invert (C x)
template<typename C >
C square (C x)
template<typename C >
C norm (C x)
template<typename C >
C square_norm (C x)

Function Documentation

template<typename C >
C invert ( C  x) [inline]

Definition at line 21 of file operators.hpp.

             {
  return 1/x;
}
template<typename C >
C norm ( C  x) [inline]

Definition at line 31 of file operators.hpp.

           {
  return x >= 0? x: -x;
}
template<typename C >
C square ( C  x) [inline]

Definition at line 26 of file operators.hpp.

             {
  return x*x;
}
template<typename C >
C square_norm ( C  x) [inline]

Definition at line 36 of file operators.hpp.

                  {
  return x*x;
}

Here is the caller graph for this function: