im_math_op.h File Reference
Detailed Description
See Copyright Notice in im_lib.h- Id
- im_math_op.h,v 1.2 2005/12/05 20:44:36 scuri Exp
Go to the source code of this file.
Functions | |
template<class T> | |
T | crop_byte (const T &v) |
template<class T1, class T2> | |
T1 | add_op (const T1 &v1, const T2 &v2) |
template<class T1, class T2> | |
T1 | sub_op (const T1 &v1, const T2 &v2) |
template<class T1, class T2> | |
T1 | mul_op (const T1 &v1, const T2 &v2) |
template<class T1, class T2> | |
T1 | div_op (const T1 &v1, const T2 &v2) |
template<class T> | |
T | inv_op (const T &v) |
template<class T1, class T2> | |
T1 | diff_op (const T1 &v1, const T2 &v2) |
template<class T1, class T2> | |
T1 | min_op (const T1 &v1, const T2 &v2) |
template<class T1, class T2> | |
T1 | max_op (const T1 &v1, const T2 &v2) |
imbyte | pow_op (const imbyte &v1, const imbyte &v2) |
imushort | pow_op (const imushort &v1, const imushort &v2) |
int | pow_op (const int &v1, const int &v2) |
template<class T1, class T2> | |
T1 | pow_op (const T1 &v1, const T2 &v2) |
template<class T> | |
T | abs_op (const T &v) |
template<class T> | |
T | less_op (const T &v) |
template<class T> | |
T | sqr_op (const T &v) |
int | sqrt (const int &C) |
template<class T> | |
T | sqrt_op (const T &v) |
int | exp (const int &v) |
template<class T> | |
T | exp_op (const T &v) |
int | log (const int &v) |
template<class T> | |
T | log_op (const T &v) |
imcfloat | sin (const imcfloat &v) |
int | sin (const int &v) |
template<class T> | |
T | sin_op (const T &v) |
int | cos (const int &v) |
imcfloat | cos (const imcfloat &v) |
template<class T> | |
T | cos_op (const T &v) |
void | imDataBitSet (imbyte *data, int index, int bit) |
int | imDataBitGet (imbyte *data, int index) |
Function Documentation
|
Crop value to Byte limit.
|
|
Generic Addition with 2 template types.
|
|
Generic Subtraction with 2 template types.
|
|
Generic Multiplication with 2 template types.
|
|
Generic Division with 2 template types.
|
|
Generic Invert.
|
|
Generic Difference with 2 template types.
|
|
Generic Minimum with 2 template types.
|
|
Generic Maximum with 2 template types.
|
|
Generic Power with 2 template types.
|
|
Generic Abssolute.
|
|
Generic Less.
|
|
Generic Square.
|
|
Generic Square Root.
|
|
Generic Exponential.
|
|
Generic Logarithm.
|
|
Generic Sine.
|
|
Generic Cosine.
|
|
Sets a bit in an array.
00207 { 00208 if (bit) 00209 data[index / 8] |= (0x01 << (7 - (index % 8))); 00210 else 00211 data[index / 8] &= ~(0x01 << (7 - (index % 8))); 00212 }
|
|
Gets a bit from an array.
|