Arith.h
1 /*
2  * Medical Image Registration ToolKit (MIRTK)
3  *
4  * Copyright 2008-2015 Imperial College London
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 
19 #ifndef MIRTK_Arith_H
20 #define MIRTK_Arith_H
21 
22 namespace mirtk {
23 
24 
25 int IAbs(int iValue);
26 int ICeil(float fValue);
27 int IFloor(float fValue);
28 int ISign(int iValue);
29 
30 double Abs(double fValue);
31 double ACos(double fValue);
32 double ASin(double fValue);
33 double ATan(double fValue);
34 double ATan2(double fY, double fX);
35 double Ceil(double fValue);
36 double Cos(double fValue);
37 double Exp(double fValue);
38 double Floor(double fValue);
39 double Log(double fValue);
40 double Pow(double kBase, double kExponent);
41 double Sign(double fValue);
42 double Sin(double fValue);
43 double Sqr(double fValue);
44 double Sqrt(double fValue);
45 double UnitRandom(); // in [0,1]
46 double SymmetricRandom(); // in [-1,1]
47 
48 
49 } // namespace mirtk
50 
51 #endif // MIRTK_Arith_H
Definition: IOConfig.h:41