MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / ExportStdMathFunctions

Function ExportStdMathFunctions

fem/coefficient_stdmath.cpp:23–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 NGS_DLL_HEADER void ExportStdMathFunctions(py::module &m);
22
23 void ExportStdMathFunctions(py::module &m)
24 {
25 ExportStdMathFunction_<GenericSin>(m, "sin", "Sine of argument in radians");
26 ExportStdMathFunction_<GenericCos>(m, "cos", "Cosine of argument in radians");
27 ExportStdMathFunction_<GenericTan>(m, "tan", "Tangent of argument in radians");
28 ExportStdMathFunction_<GenericSinh>(m, "sinh", "Hyperbolic sine of argument");
29 ExportStdMathFunction_<GenericCosh>(m, "cosh", "Hyperbolic cosine of argument");
30 ExportStdMathFunction_<GenericASinh>(m, "asinh", "Inverse hyperbolic sine of argument");
31 ExportStdMathFunction_<GenericACosh>(m, "acosh", "Inverse hyperbolic cosine of argument");
32 ExportStdMathFunction_<GenericExp>(m, "exp", "Exponential function");
33 ExportStdMathFunction_<GenericLog>(m, "log", "Logarithm function");
34 ExportStdMathFunction_<GenericATan>(m, "atan", "Inverse tangent in radians");
35 ExportStdMathFunction_<GenericACos>(m, "acos", "Inverse cosine in radians");
36 ExportStdMathFunction_<GenericASin>(m, "asin", "Inverse sine in radians");
37 ExportStdMathFunction_<GenericSqrt>(m, "sqrt", "Square root function");
38 ExportStdMathFunction_<GenericErf>(m, "erf", "Error function");
39 ExportStdMathFunction_<GenericFloor>(m, "floor", "Round to next lower integer");
40 ExportStdMathFunction_<GenericCeil>(m, "ceil", "Round to next greater integer");
41 // ExportStdMathFunction<GenericConj>(m, "Conj", "Conjugate imaginary part of complex number");
42 // ExportStdMathFunction<GenericIdentity>(m, " ", "Passes value through");
43 }
44#endif
45
46

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected