Skip to content

Commit

Permalink
add some missing functions to intrinsics.hpp
Browse files Browse the repository at this point in the history
these are allowed in intrinsics.py
  • Loading branch information
Dan Dees committed Mar 9, 2025
1 parent baccc1d commit e240078
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions fable/fem/intrinsics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ namespace fem {
return std::cos(angle);
}

inline
double
dcos(
double const& angle)
{
return std::cos(angle);
}

inline
float
acos(
Expand Down Expand Up @@ -148,6 +156,14 @@ namespace fem {
return std::sin(angle);
}

inline
double
dsin(
double const& angle)
{
return std::sin(angle);
}

inline
float
asin(
Expand Down Expand Up @@ -259,6 +275,30 @@ namespace fem {
return std::exp(x);
}

inline
float
log10(
float const& x)
{
return std::log10(x);
}

inline
double
log10(
double const& x)
{
return std::log10(x);
}

inline
double
dlog10(
double const& x)
{
return std::log10(x);
}

inline
float
alog10(
Expand Down Expand Up @@ -728,6 +768,38 @@ namespace fem {
return std::pow(base, exponent);
}

inline
float
cosh(
float const& angle)
{
return std::cosh(angle);
}

inline
double
cosh(
double const& angle)
{
return std::cosh(angle);
}

inline
float
tanh(
float const& angle)
{
return std::tanh(angle);
}

inline
double
tanh(
double const& angle)
{
return std::tanh(angle);
}

using std::abs;
using std::log;

Expand Down

0 comments on commit e240078

Please sign in to comment.