| 22 | memcpy((void *)dst,(void *)src,sizeof(T)*n); |
| 23 | } |
| 24 | inline double powi(double base, int times) |
| 25 | { |
| 26 | double tmp = base, ret = 1.0; |
| 27 | |
| 28 | for(int t=times; t>0; t/=2) |
| 29 | { |
| 30 | if(t%2==1) ret*=tmp; |
| 31 | tmp = tmp * tmp; |
| 32 | } |
| 33 | return ret; |
| 34 | } |
| 35 | #define INF HUGE_VAL |
| 36 | #define TAU 1e-12 |
| 37 | #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) |
no outgoing calls
no test coverage detected