STORMM Source Documentation
Loading...
Searching...
No Matches
formulas.h
1// -*-c++-*-
2#ifndef STORMM_FORMULAS_H
3#define STORMM_FORMULAS_H
4
5#include "copyright.h"
6#include "DataTypes/common_types.h"
7#include "DataTypes/stormm_vector_types.h"
8
9namespace stormm {
10namespace stmath {
11
16int factorial(int x);
17
22llint factoriall(llint x);
23
28double factoriald(int x);
29
35int ipow(int x, int p);
36
42llint ipowl(llint x, int p);
43
61double4 sigmoid(double r, double crossover, double intensity);
62double sigmoid(double r, double crossover, double intensity, int order);
64
68float4 sigmoidf(float r, float crossover, float intensity);
69float sigmoidf(float r, float crossover, float intensity, int order);
71
78double angleOnAxes(double x, double y);
79
82float angleOnAxesf(float x, float y);
83
84} // namespace stmath
85} // namespace stormm
86
87#endif