Mathematical Functions
Advanced Computational Language » Functions
Collaboration diagram for Mathematical Functions:

## Functions

Element | acl::elementOperators::sin (Element e)
Element | acl::elementOperators::cos (Element e)
Element | acl::elementOperators::sqrt (Element e)
Element | acl::elementOperators::rsqrt (Element e)
Element | acl::elementOperators::log (Element e)
Element | acl::elementOperators::log10 (Element e)
Element | acl::elementOperators::powI (Element a, unsigned int i)
Element | acl::elementOperators::exp (Element a)
Element | acl::elementOperators::fabs (Element a)
Element | acl::elementOperators::abs (Element a)
Element | acl::elementOperators::abs_diff (Element a, Element b)
Element | acl::elementOperators::floor (Element a)
Element | acl::elementOperators::isnan (Element a)
Element | acl::elementOperators::nan (TypeID t)
Element | acl::elementOperators::copysign (Element a, Element b)
Element | acl::elementOperators::sign (Element a)
Element | acl::elementOperators::min (Element a, Element b)
Element | acl::elementOperators::max (Element a, Element b)
Element | acl::elementOperators::mad (Element e1, Element e2, Element e3)

## Detailed Description

## Function Documentation

## abs()

Element acl::elementOperators::abs | ( | Element | a | ) |

abs(a)

## abs_diff()

Element acl::elementOperators::abs_diff | ( | Element | a,
|  | Element | b
| ) |  |

abs_diff(a,b)

## copysign()

Element acl::elementOperators::copysign | ( | Element | a,
|  | Element | b
| ) |  |

returns `a` with sign of `b` copysign(a,b)

## cos()

Element acl::elementOperators::cos | ( | Element | e | ) |

Examples
  acousticWaves.cc, and testPerformance.cc.

## exp()

Element acl::elementOperators::exp | ( | Element | a | ) |

exp(a)

## fabs()

Element acl::elementOperators::fabs | ( | Element | a | ) |

fabs(a)

## floor()

Element acl::elementOperators::floor | ( | Element | a | ) |

floor(a)

## isnan()

Element acl::elementOperators::isnan | ( | Element | a | ) |

isnan(a)

## log()

Element acl::elementOperators::log | ( | Element | e | ) |

## log10()

Element acl::elementOperators::log10 | ( | Element | e | ) |

## mad()

Element acl::elementOperators::mad | ( | Element | e1,
|  | Element | e2,
|  | Element | e3
| ) |  |

ternary mad operator e1 * e2 + e3

## max()

Element acl::elementOperators::max | ( | Element | a,
|  | Element | b
| ) |  |

max(a,b)

## min()

Element acl::elementOperators::min | ( | Element | a,
|  | Element | b
| ) |  |

min(a,b)

## nan()

Element acl::elementOperators::nan | ( | TypeID | t | ) |

Return nan of corresponding float type

## powI()

Element acl::elementOperators::powI | ( | Element | a,
|  | unsigned int | i
| ) |  |

a^i

Examples
  testKernel.cc.

## rsqrt()

Element acl::elementOperators::rsqrt | ( | Element | e | ) |

## sign()

Element acl::elementOperators::sign | ( | Element | a | ) |

returns 1 with sign of `a` and 0 for a = +-0 copysign(a,b)

Examples
  poroelastic.cc.

## sin()

Element acl::elementOperators::sin | ( | Element | e | ) |

Examples
  testPerformance.cc.

## sqrt()

Element acl::elementOperators::sqrt | ( | Element | e | ) |

Examples
  acousticWaves.cc, and testPerformance.cc.