Openholo  v5.0
Open Source Digital Holographic Library
oph Namespace Reference

Classes

class  Complex
 class for the complex number and its arithmetic. type T == type cplx type only float || double T real() : real number T imag() : imaginary number More...
 
class  ImgCodecOhc
 
class  ImgControl
 
class  ImgDecoderOhc
 
class  ImgEncoderOhc
 
struct  ivec2
 structure for 2-dimensional integer vector and its arithmetic. More...
 
struct  ivec3
 structure for 3-dimensional integer vector and its arithmetic. More...
 
struct  ivec4
 structure for 4-dimensional integer vector and its arithmetic. More...
 
class  matrix
 
struct  ohcFieldInfoHeader
 
struct  ohcFileHeader
 
struct  ohcHeader
 
struct  vec2
 structure for 2-dimensional Real type vector and its arithmetic. More...
 
struct  vec3
 structure for 3-dimensional Real type vector and its arithmetic. More...
 
struct  vec4
 structure for 4-dimensional Real type vector and its arithmetic. More...
 

Typedefs

typedef oph::matrix< int > OphIntField
 
typedef oph::matrix< ucharOphByteField
 
typedef oph::matrix< RealOphRealField
 
typedef oph::matrix< Real_tOphRealTField
 
typedef oph::matrix< Complex< Real > > OphComplexField
 
typedef oph::matrix< Complex< Real_t > > OphComplexTField
 
typedef OphComplexField Mat
 
typedef OphComplexTField MatF
 
typedef unsigned int uint
 
typedef unsigned short ushort
 
typedef unsigned char uchar
 
typedef unsigned long ulong
 
typedef long long longlong
 
typedef unsigned long long ulonglong
 

Enumerations

enum  LenUnit : uint8_t {
  LenUnit::Null = 0, LenUnit::m = 1, LenUnit::cm = 2, LenUnit::mm = 3,
  LenUnit::um = 4, LenUnit::nm = 5
}
 
enum  ColorType : uint8_t { ColorType::Null = 0, ColorType::RGB = 1, ColorType::MLT = 2 }
 
enum  ColorArran : uint8_t { ColorArran::Null = 0, ColorArran::SeqtChanl = 1, ColorArran::EachChanl = 2 }
 
enum  DataType : uint8_t {
  DataType::Null = 0, DataType::Int8 = 1, DataType::Int16 = 2, DataType::Int32 = 3,
  DataType::Int64 = 4, DataType::Uint8 = 5, DataType::Uint16 = 6, DataType::Uint32 = 7,
  DataType::Uint64 = 8, DataType::Float32 = 9, DataType::Float64 = 10, DataType::CmprFmt = 11
}
 
enum  FldStore : uint8_t { FldStore::Null = 0, FldStore::Directly = 1, FldStore::LinkFile = 2 }
 
enum  FldCodeType : uint8_t {
  FldCodeType::Null = 0, FldCodeType::AP = 1, FldCodeType::RI = 2, FldCodeType::AE = 3,
  FldCodeType::PE = 4
}
 
enum  BPhaseCode : uint8_t { BPhaseCode::Null = 0, BPhaseCode::NotEncoded = 0, BPhaseCode::Encoded = 1 }
 
enum  CompresType : uint8_t {
  CompresType::Null = 0, CompresType::BMP = 1, CompresType::JPG = 2, CompresType::J2K = 3,
  CompresType::PNG = 4, CompresType::GIF = 5, CompresType::TIF = 6
}
 

Functions

void set_u_epsilon (Real a)
 
void reset_u_epsilon ()
 
void set_zero_epsilon (Real a)
 
void reset_zero_epsilon ()
 
int apx_equal (Real x, Real y)
 
int apx_equal (Real x, Real y, Real eps)
 
template<typename type , typename T >
type force_cast (const Complex< T > &p)
 
template<typename type , typename T >
type force_cast (const T &p)
 
Real minOfArr (const std::vector< Real > &arr)
 
Real minOfArr (const Real *src, const int &size)
 
Real maxOfArr (const std::vector< Real > &arr)
 
Real maxOfArr (const Real *src, const int &size)
 
Real average (const Real *src, const int &size)
 
template<typename T >
void abs (const oph::Complex< T > &src, oph::Complex< T > &dst)
 
template<typename T >
void absArr (const std::vector< Complex< T >> &src, std::vector< oph::Complex< T >> &dst)
 
template<typename T >
void absMat (const oph::matrix< oph::Complex< T >> &src, oph::matrix< oph::Complex< T >> &dst)
 
template<typename T >
void absCplx (const oph::Complex< T > &src, T &dst)
 
template<typename T >
void absCplxArr (const oph::Complex< T > *src, T *dst, const int &size)
 
template<typename T >
getReal (const oph::Complex< T > src)
 
template<typename T >
void realPart (const oph::Complex< T > *src, T *dst, const int &size)
 
template<typename T >
void angle (const std::vector< Complex< T >> &src, std::vector< T > &dst)
 
template<typename T >
angle (const oph::Complex< T > &src)
 
template<typename T >
void normalize (const Complex< T > *src, Complex< T > *dst, const int &size)
 Normalize all elements of Complex<T>* src from 0 to 1. More...
 
template<typename T >
void normalize (const T *src, T *dst, const int &size)
 
template<typename T >
void normalize (T *src, oph::uchar *dst, const oph::uint nx, const oph::uint ny)
 Normalize all elements of T* src from 0 to 255. More...
 
template<typename T >
void normalize (const std::vector< T > *src, std::vector< oph::uchar > *dst)
 Normalize all elements from 0 to 255. More...
 
template<typename T >
void memsetArr (const std::vector< T > *pArr, T _Value, oph::uint beginIndex, oph::uint endIndex)
 Set elements to specific values from begin index to end index. More...
 
template<typename T >
void memsetArr (T *pArr, const T &_Value, const oph::uint &beginIndex, const oph::uint &endIndex)
 
template<typename T >
void circShift (const T *src, T *dst, int shift_x, int shift_y, int xdim, int ydim)
 Shifts the elements by shift_x, shift_y. More...
 
Real rand (const Real min, const Real max, oph::ulong _SEED_VALUE=0)
 Get random Real value from min to max. More...
 
int rand (const int min, const int max, oph::ulong _SEED_VALUE=0)
 Get random Integer value from min to max. More...
 
void getPhase (oph::Complex< Real > *src, Real *dst, const int &size)
 
void getAmplitude (oph::Complex< Real > *src, Real *dst, const int &size)
 
template<typename T >
void Field2Buffer (matrix< T > &src, T **dst)
 
template<typename T >
void Buffer2Field (const T *src, matrix< T > &dst, const ivec2 buffer_size)
 
void meshGrid ()
 
ivec2 operator+ (const ivec2 &a, const ivec2 &b)
 
ivec2 operator+ (int a, const ivec2 &b)
 
ivec2 operator+ (const ivec2 &a, int b)
 
ivec2 operator- (const ivec2 &a, const ivec2 &b)
 
ivec2 operator- (int a, const ivec2 &b)
 
ivec2 operator- (const ivec2 &a, int b)
 
ivec2 operator* (const ivec2 &a, const ivec2 &b)
 
ivec2 operator* (int a, const ivec2 &b)
 
ivec2 operator* (const ivec2 &a, int b)
 
ivec2 operator+= (ivec2 &a, const ivec2 &b)
 
ivec2 operator+= (ivec2 &a, int b)
 
ivec2 operator-= (ivec2 &a, const ivec2 &b)
 
ivec2 operator-= (ivec2 &a, int b)
 
ivec2 operator*= (ivec2 &a, const ivec2 &b)
 
ivec2 operator*= (ivec2 &a, int b)
 
int operator== (const ivec2 &a, const ivec2 &b)
 
int operator== (int a, const ivec2 &b)
 
int operator== (const ivec2 &a, int b)
 
int operator< (const ivec2 &a, const ivec2 &b)
 
int operator< (int a, const ivec2 &b)
 
int operator< (const ivec2 &a, int b)
 
int operator<= (const ivec2 &a, const ivec2 &b)
 
int operator<= (int a, const ivec2 &b)
 
int operator<= (const ivec2 &a, int b)
 
int operator> (const ivec2 &a, const ivec2 &b)
 
int operator> (int a, const ivec2 &b)
 
int operator> (const ivec2 &a, int b)
 
int operator>= (const ivec2 &a, const ivec2 &b)
 
int operator>= (int a, const ivec2 &b)
 
int operator>= (const ivec2 &a, int b)
 
int operator!= (const ivec2 &a, const ivec2 &b)
 
ivec2 operator- (const ivec2 &a)
 
ivec3 operator+ (const ivec3 &a, const ivec3 &b)
 
ivec3 operator+ (int a, const ivec3 &b)
 
ivec3 operator+ (const ivec3 &a, int b)
 
ivec3 operator- (const ivec3 &a, const ivec3 &b)
 
ivec3 operator- (int a, const ivec3 &b)
 
ivec3 operator- (const ivec3 &a, int b)
 
ivec3 operator* (const ivec3 &a, const ivec3 &b)
 
ivec3 operator* (int a, const ivec3 &b)
 
ivec3 operator* (const ivec3 &a, int b)
 
ivec3 operator+= (ivec3 &a, const ivec3 &b)
 
ivec3 operator+= (ivec3 &a, int b)
 
ivec3 operator-= (ivec3 &a, const ivec3 &b)
 
ivec3 operator-= (ivec3 &a, int b)
 
ivec3 operator*= (ivec3 &a, const ivec3 &b)
 
ivec3 operator*= (ivec3 &a, int b)
 
int operator== (const ivec3 &a, const ivec3 &b)
 
int operator== (int a, const ivec3 &b)
 
int operator== (const ivec3 &a, int b)
 
int operator< (const ivec3 &a, const ivec3 &b)
 
int operator< (int a, const ivec3 &b)
 
int operator< (const ivec3 &a, int b)
 
int operator<= (const ivec3 &a, const ivec3 &b)
 
int operator<= (int a, const ivec3 &b)
 
int operator<= (const ivec3 &a, int b)
 
int operator> (const ivec3 &a, const ivec3 &b)
 
int operator> (int a, const ivec3 &b)
 
int operator> (const ivec3 &a, int b)
 
int operator>= (const ivec3 &a, const ivec3 &b)
 
int operator>= (int a, const ivec3 &b)
 
int operator>= (const ivec3 &a, int b)
 
int operator!= (const ivec3 &a, const ivec3 &b)
 
ivec3 operator- (const ivec3 &a)
 
ivec4 operator+ (const ivec4 &a, const ivec4 &b)
 
ivec4 operator+ (int a, const ivec4 &b)
 
ivec4 operator+ (const ivec4 &a, int b)
 
ivec4 operator- (const ivec4 &a, const ivec4 &b)
 
ivec4 operator- (int a, const ivec4 &b)
 
ivec4 operator- (const ivec4 &a, int b)
 
ivec4 operator* (const ivec4 &a, const ivec4 &b)
 
ivec4 operator* (int a, const ivec4 &b)
 
ivec4 operator* (const ivec4 &a, int b)
 
ivec4 operator+= (ivec4 &a, const ivec4 &b)
 
ivec4 operator+= (ivec4 &a, int b)
 
ivec4 operator-= (ivec4 &a, const ivec4 &b)
 
ivec4 operator-= (ivec4 &a, int b)
 
ivec4 operator*= (ivec4 &a, const ivec4 &b)
 
ivec4 operator*= (ivec4 &a, int b)
 
int operator== (const ivec4 &a, const ivec4 &b)
 
int operator== (int a, const ivec4 &b)
 
int operator== (const ivec4 &a, int b)
 
int operator< (const ivec4 &a, const ivec4 &b)
 
int operator< (int a, const ivec4 &b)
 
int operator< (const ivec4 &a, int b)
 
int operator<= (const ivec4 &a, const ivec4 &b)
 
int operator<= (int a, const ivec4 &b)
 
int operator<= (const ivec4 &a, int b)
 
int operator> (const ivec4 &a, const ivec4 &b)
 
int operator> (int a, const ivec4 &b)
 
int operator> (const ivec4 &a, int b)
 
int operator>= (const ivec4 &a, const ivec4 &b)
 
int operator!= (const ivec4 &a, const ivec4 &b)
 
int operator>= (int a, const ivec4 &b)
 
int operator>= (const ivec4 &a, int b)
 
ivec4 operator- (const ivec4 &a)
 
void store (FILE *fp, const vec2 &v)
 
int apx_equal (const vec2 &a, const vec2 &b)
 
int apx_equal (const vec2 &a, const vec2 &b, Real eps)
 
void store (FILE *fp, const vec3 &v)
 
int apx_equal (const vec3 &a, const vec3 &b)
 
int apx_equal (const vec3 &a, const vec3 &b, Real eps)
 
void store (FILE *fp, const vec4 &v)
 
int apx_equal (const vec4 &a, const vec4 &b)
 
int apx_equal (const vec4 &a, const vec4 &b, Real eps)
 
vec3 cross (const vec3 &a, const vec3 &b)
 
vec2 operator+ (const vec2 &a, const vec2 &b)
 
vec2 operator+ (Real a, const vec2 &b)
 
vec2 operator+ (const vec2 &a, Real b)
 
vec2 operator- (const vec2 &a, const vec2 &b)
 
vec2 operator- (Real a, const vec2 &b)
 
vec2 operator- (const vec2 &a, Real b)
 
vec2 operator* (const vec2 &a, const vec2 &b)
 
vec2 operator* (Real a, const vec2 &b)
 
vec2 operator* (const vec2 &a, Real b)
 
vec2 operator/ (const vec2 &a, const vec2 &b)
 
vec2 operator/ (Real a, const vec2 &b)
 
vec2 operator/ (const vec2 &a, Real b)
 
vec2 operator+= (vec2 &a, const vec2 &b)
 
vec2 operator+= (vec2 &a, Real b)
 
vec2 operator-= (vec2 &a, const vec2 &b)
 
vec2 operator-= (vec2 &a, Real b)
 
vec2 operator*= (vec2 &a, const vec2 &b)
 
vec2 operator*= (vec2 &a, Real b)
 
vec2 operator/= (vec2 &a, const vec2 &b)
 
vec2 operator/= (vec2 &a, Real b)
 
int operator== (const vec2 &a, const vec2 &b)
 
int operator== (Real a, const vec2 &b)
 
int operator== (const vec2 &a, Real b)
 
int operator< (const vec2 &a, const vec2 &b)
 
int operator< (Real a, const vec2 &b)
 
int operator< (const vec2 &a, Real b)
 
int operator<= (const vec2 &a, const vec2 &b)
 
int operator<= (Real a, const vec2 &b)
 
int operator<= (const vec2 &a, Real b)
 
int operator> (const vec2 &a, const vec2 &b)
 
int operator> (Real a, const vec2 &b)
 
int operator> (const vec2 &a, Real b)
 
int operator>= (const vec2 &a, const vec2 &b)
 
int operator>= (Real a, const vec2 &b)
 
int operator>= (const vec2 &a, Real b)
 
vec2 operator- (const vec2 &a)
 
Real sum (const vec2 &a)
 
Real inner (const vec2 &a, const vec2 &b)
 
Real norm (const vec2 &a)
 
Real squaredNorm (const vec2 &a)
 
vec2 unit (const vec2 &a)
 
Real angle (const vec2 &a, const vec2 &b)
 
vec2 proj (const vec2 &axis, const vec2 &a)
 
vec2 absolute (const vec2 &val)
 
vec3 operator+ (const vec3 &a, const vec3 &b)
 
vec3 operator+ (Real a, const vec3 &b)
 
vec3 operator+ (const vec3 &a, Real b)
 
vec3 operator- (const vec3 &a, const vec3 &b)
 
vec3 operator- (Real a, const vec3 &b)
 
vec3 operator- (const vec3 &a, Real b)
 
vec3 operator* (const vec3 &a, const vec3 &b)
 
vec3 operator* (Real a, const vec3 &b)
 
vec3 operator* (const vec3 &a, Real b)
 
vec3 operator/ (const vec3 &a, const vec3 &b)
 
vec3 operator/ (Real a, const vec3 &b)
 
vec3 operator/ (const vec3 &a, Real b)
 
vec3 operator+= (vec3 &a, const vec3 &b)
 
vec3 operator+= (vec3 &a, Real b)
 
vec3 operator-= (vec3 &a, const vec3 &b)
 
vec3 operator-= (vec3 &a, Real b)
 
vec3 operator*= (vec3 &a, const vec3 &b)
 
vec3 operator*= (vec3 &a, Real b)
 
vec3 operator/= (vec3 &a, const vec3 &b)
 
vec3 operator/= (vec3 &a, Real b)
 
int operator== (const vec3 &a, const vec3 &b)
 
int operator== (Real a, const vec3 &b)
 
int operator== (const vec3 &a, Real b)
 
int operator< (const vec3 &a, const vec3 &b)
 
int operator< (Real a, const vec3 &b)
 
int operator< (const vec3 &a, Real b)
 
int operator<= (const vec3 &a, const vec3 &b)
 
int operator<= (Real a, const vec3 &b)
 
int operator<= (const vec3 &a, Real b)
 
int operator> (const vec3 &a, const vec3 &b)
 
int operator> (Real a, const vec3 &b)
 
int operator> (const vec3 &a, Real b)
 
int operator>= (const vec3 &a, const vec3 &b)
 
int operator>= (Real a, const vec3 &b)
 
int operator>= (const vec3 &a, Real b)
 
vec3 operator- (const vec3 &a)
 
vec3 absolute (const vec3 &val)
 
Real sum (const vec3 &a)
 
Real inner (const vec3 &a, const vec3 &b)
 
Real squaredNorm (const vec3 &a)
 
Real norm (const vec3 &a)
 
vec3 unit (const vec3 &a)
 
Real angle (const vec3 &a, const vec3 &b)
 
vec3 proj (const vec3 &axis, const vec3 &a)
 
vec4 operator+ (const vec4 &a, const vec4 &b)
 
vec4 operator+ (Real a, const vec4 &b)
 
vec4 operator+ (const vec4 &a, Real b)
 
vec4 operator- (const vec4 &a, const vec4 &b)
 
vec4 operator- (Real a, const vec4 &b)
 
vec4 operator- (const vec4 &a, Real b)
 
vec4 operator* (const vec4 &a, const vec4 &b)
 
vec4 operator* (Real a, const vec4 &b)
 
vec4 operator* (const vec4 &a, Real b)
 
vec4 operator/ (const vec4 &a, const vec4 &b)
 
vec4 operator/ (Real a, const vec4 &b)
 
vec4 operator/ (const vec4 &a, Real b)
 
vec4 operator+= (vec4 &a, const vec4 &b)
 
vec4 operator+= (vec4 &a, Real b)
 
vec4 operator-= (vec4 &a, const vec4 &b)
 
vec4 operator-= (vec4 &a, Real b)
 
vec4 operator*= (vec4 &a, const vec4 &b)
 
vec4 operator*= (vec4 &a, Real b)
 
vec4 operator/= (vec4 &a, const vec4 &b)
 
vec4 operator/= (vec4 &a, Real b)
 
int operator== (const vec4 &a, const vec4 &b)
 
int operator== (Real a, const vec4 &b)
 
int operator== (const vec4 &a, Real b)
 
int operator< (const vec4 &a, const vec4 &b)
 
int operator< (Real a, const vec4 &b)
 
int operator< (const vec4 &a, Real b)
 
int operator<= (const vec4 &a, const vec4 &b)
 
int operator<= (Real a, const vec4 &b)
 
int operator<= (const vec4 &a, Real b)
 
int operator> (const vec4 &a, const vec4 &b)
 
int operator> (Real a, const vec4 &b)
 
int operator> (const vec4 &a, Real b)
 
int operator>= (const vec4 &a, const vec4 &b)
 
int operator>= (Real a, const vec4 &b)
 
int operator>= (const vec4 &a, Real b)
 
vec4 operator- (const vec4 &a)
 
vec4 absolute (const vec4 &val)
 
Real sum (const vec4 &a)
 
Real inner (const vec4 &a, const vec4 &b)
 
Real squaredNorm (const vec4 &a)
 
Real norm (const vec4 &a)
 
vec4 unit (const vec4 &a)
 
Real angle (const vec4 &a, const vec4 &b)
 
vec4 proj (const vec4 &axis, const vec4 &a)
 

Variables

Real epsilon = 1.0e-8
 
Real user_epsilon = 1.0e-8
 
Real intersection_epsilon = 1e-6
 
Real sqrt_epsilon = 1.490116119385000000e-8
 
Real unset_value = -1.23432101234321e+308
 
Real zero_tolerance = 1.0e-12
 
Real zero_epsilon = 1.0e-12
 
Real angle_tolerance = M_PI/180.0
 
Real save_zero_epsilon = 1.0e-12
 

Typedef Documentation

◆ longlong

typedef long long oph::longlong

Definition at line 66 of file typedef.h.

◆ Mat

Definition at line 423 of file mat.h.

◆ MatF

Definition at line 424 of file mat.h.

◆ OphByteField

Definition at line 417 of file mat.h.

◆ OphComplexField

Definition at line 420 of file mat.h.

◆ OphComplexTField

Definition at line 421 of file mat.h.

◆ OphIntField

Definition at line 416 of file mat.h.

◆ OphRealField

Definition at line 418 of file mat.h.

◆ OphRealTField

Definition at line 419 of file mat.h.

◆ uchar

typedef unsigned char oph::uchar

Definition at line 64 of file typedef.h.

◆ uint

typedef unsigned int oph::uint

Definition at line 62 of file typedef.h.

◆ ulong

typedef unsigned long oph::ulong

Definition at line 65 of file typedef.h.

◆ ulonglong

typedef unsigned long long oph::ulonglong

Definition at line 67 of file typedef.h.

◆ ushort

typedef unsigned short oph::ushort

Definition at line 63 of file typedef.h.

Enumeration Type Documentation

◆ BPhaseCode

enum oph::BPhaseCode : uint8_t
strong
Enumerator
Null 
NotEncoded 
Encoded 

Definition at line 116 of file ImgCodecDefine.h.

◆ ColorArran

enum oph::ColorArran : uint8_t
strong
Enumerator
Null 
SeqtChanl 
EachChanl 

Definition at line 77 of file ImgCodecDefine.h.

◆ ColorType

enum oph::ColorType : uint8_t
strong
Enumerator
Null 
RGB 
MLT 

Definition at line 69 of file ImgCodecDefine.h.

◆ CompresType

enum oph::CompresType : uint8_t
strong
Enumerator
Null 
BMP 
JPG 
J2K 
PNG 
GIF 
TIF 

Definition at line 123 of file ImgCodecDefine.h.

◆ DataType

enum oph::DataType : uint8_t
strong
Enumerator
Null 
Int8 
Int16 
Int32 
Int64 
Uint8 
Uint16 
Uint32 
Uint64 
Float32 
Float64 
CmprFmt 

Definition at line 84 of file ImgCodecDefine.h.

◆ FldCodeType

enum oph::FldCodeType : uint8_t
strong
Enumerator
Null 
AP 
RI 
AE 
PE 

Definition at line 107 of file ImgCodecDefine.h.

◆ FldStore

enum oph::FldStore : uint8_t
strong
Enumerator
Null 
Directly 
LinkFile 

Definition at line 100 of file ImgCodecDefine.h.

◆ LenUnit

enum oph::LenUnit : uint8_t
strong
Enumerator
Null 
cm 
mm 
um 
nm 

Definition at line 59 of file ImgCodecDefine.h.

Function Documentation

◆ abs()

template<typename T >
void oph::abs ( const oph::Complex< T > &  src,
oph::Complex< T > &  dst 
)
inline

Definition at line 113 of file function.h.

◆ absArr()

template<typename T >
void oph::absArr ( const std::vector< Complex< T >> &  src,
std::vector< oph::Complex< T >> &  dst 
)
inline

Definition at line 118 of file function.h.

◆ absCplx()

template<typename T >
void oph::absCplx ( const oph::Complex< T > &  src,
T &  dst 
)
inline

Definition at line 135 of file function.h.

◆ absCplxArr()

template<typename T >
void oph::absCplxArr ( const oph::Complex< T > *  src,
T *  dst,
const int &  size 
)
inline

Definition at line 140 of file function.h.

◆ absMat()

template<typename T >
void oph::absMat ( const oph::matrix< oph::Complex< T >> &  src,
oph::matrix< oph::Complex< T >> &  dst 
)
inline

Definition at line 125 of file function.h.

◆ absolute() [1/3]

vec2 oph::absolute ( const vec2 val)
inline

Definition at line 452 of file vec.h.

◆ absolute() [2/3]

vec3 oph::absolute ( const vec3 val)
inline

Definition at line 793 of file vec.h.

◆ absolute() [3/3]

vec4 oph::absolute ( const vec4 val)
inline

Definition at line 1165 of file vec.h.

◆ angle() [1/5]

template<typename T >
void oph::angle ( const std::vector< Complex< T >> &  src,
std::vector< T > &  dst 
)
inline

Definition at line 159 of file function.h.

◆ angle() [2/5]

template<typename T >
T oph::angle ( const oph::Complex< T > &  src)
inline

Definition at line 166 of file function.h.

◆ angle() [3/5]

Real oph::angle ( const vec2 a,
const vec2 b 
)
inline

Definition at line 435 of file vec.h.

◆ angle() [4/5]

Real oph::angle ( const vec3 a,
const vec3 b 
)
inline

Definition at line 838 of file vec.h.

◆ angle() [5/5]

Real oph::angle ( const vec4 a,
const vec4 b 
)
inline

Definition at line 1209 of file vec.h.

◆ apx_equal() [1/8]

int oph::apx_equal ( Real  x,
Real  y 
)

Definition at line 91 of file epsilon.cpp.

◆ apx_equal() [2/8]

int oph::apx_equal ( Real  x,
Real  y,
Real  eps 
)

Definition at line 107 of file epsilon.cpp.

◆ apx_equal() [3/8]

int oph::apx_equal ( const vec2 a,
const vec2 b 
)

Definition at line 146 of file vec.cpp.

◆ apx_equal() [4/8]

int oph::apx_equal ( const vec2 a,
const vec2 b,
Real  eps 
)

Definition at line 157 of file vec.cpp.

◆ apx_equal() [5/8]

int oph::apx_equal ( const vec3 a,
const vec3 b 
)

Definition at line 363 of file vec.cpp.

◆ apx_equal() [6/8]

int oph::apx_equal ( const vec3 a,
const vec3 b,
Real  eps 
)

Definition at line 374 of file vec.cpp.

◆ apx_equal() [7/8]

int oph::apx_equal ( const vec4 a,
const vec4 b 
)

Definition at line 422 of file vec.cpp.

◆ apx_equal() [8/8]

int oph::apx_equal ( const vec4 a,
const vec4 b,
Real  eps 
)

Definition at line 433 of file vec.cpp.

◆ average()

Real oph::average ( const Real src,
const int &  size 
)
inline

Definition at line 101 of file function.h.

◆ Buffer2Field()

template<typename T >
void oph::Buffer2Field ( const T *  src,
matrix< T > &  dst,
const ivec2  buffer_size 
)
inline

Definition at line 350 of file function.h.

◆ circShift()

template<typename T >
void oph::circShift ( const T *  src,
T *  dst,
int  shift_x,
int  shift_y,
int  xdim,
int  ydim 
)
inline

Shifts the elements by shift_x, shift_y.

Definition at line 273 of file function.h.

◆ cross()

vec3 oph::cross ( const vec3 a,
const vec3 b 
)

Definition at line 444 of file vec.cpp.

◆ Field2Buffer()

template<typename T >
void oph::Field2Buffer ( matrix< T > &  src,
T **  dst 
)
inline

Definition at line 335 of file function.h.

◆ force_cast() [1/2]

template<typename type , typename T >
type oph::force_cast ( const Complex< T > &  p)
inline

Definition at line 64 of file function.h.

◆ force_cast() [2/2]

template<typename type , typename T >
type oph::force_cast ( const T &  p)
inline

Definition at line 69 of file function.h.

◆ getAmplitude()

void oph::getAmplitude ( oph::Complex< Real > *  src,
Real dst,
const int &  size 
)
inline

Definition at line 330 of file function.h.

◆ getPhase()

void oph::getPhase ( oph::Complex< Real > *  src,
Real dst,
const int &  size 
)
inline

Definition at line 323 of file function.h.

◆ getReal()

template<typename T >
T oph::getReal ( const oph::Complex< T >  src)
inline

Definition at line 147 of file function.h.

◆ inner() [1/3]

Real oph::inner ( const vec2 a,
const vec2 b 
)
inline

Definition at line 411 of file vec.h.

◆ inner() [2/3]

Real oph::inner ( const vec3 a,
const vec3 b 
)
inline

Definition at line 814 of file vec.h.

◆ inner() [3/3]

Real oph::inner ( const vec4 a,
const vec4 b 
)
inline

Definition at line 1187 of file vec.h.

◆ maxOfArr() [1/2]

Real oph::maxOfArr ( const std::vector< Real > &  arr)
inline

Definition at line 87 of file function.h.

◆ maxOfArr() [2/2]

Real oph::maxOfArr ( const Real src,
const int &  size 
)
inline

Definition at line 93 of file function.h.

◆ memsetArr() [1/2]

template<typename T >
void oph::memsetArr ( const std::vector< T > *  pArr,
_Value,
oph::uint  beginIndex,
oph::uint  endIndex 
)
inline

Set elements to specific values from begin index to end index.

Definition at line 256 of file function.h.

◆ memsetArr() [2/2]

template<typename T >
void oph::memsetArr ( T *  pArr,
const T &  _Value,
const oph::uint beginIndex,
const oph::uint endIndex 
)

Definition at line 263 of file function.h.

◆ meshGrid()

void oph::meshGrid ( )
inline

Definition at line 364 of file function.h.

◆ minOfArr() [1/2]

Real oph::minOfArr ( const std::vector< Real > &  arr)
inline

Definition at line 73 of file function.h.

◆ minOfArr() [2/2]

Real oph::minOfArr ( const Real src,
const int &  size 
)
inline

Definition at line 79 of file function.h.

◆ norm() [1/3]

Real oph::norm ( const vec2 a)
inline

Definition at line 417 of file vec.h.

◆ norm() [2/3]

Real oph::norm ( const vec3 a)
inline

Definition at line 824 of file vec.h.

◆ norm() [3/3]

Real oph::norm ( const vec4 a)
inline

Definition at line 1195 of file vec.h.

◆ normalize() [1/4]

template<typename T >
void oph::normalize ( const Complex< T > *  src,
Complex< T > *  dst,
const int &  size 
)
inline

Normalize all elements of Complex<T>* src from 0 to 1.

Definition at line 176 of file function.h.

◆ normalize() [2/4]

template<typename T >
void oph::normalize ( const T *  src,
T *  dst,
const int &  size 
)
inline

Definition at line 188 of file function.h.

◆ normalize() [3/4]

template<typename T >
void oph::normalize ( T *  src,
oph::uchar dst,
const oph::uint  nx,
const oph::uint  ny 
)
inline

Normalize all elements of T* src from 0 to 255.

Definition at line 202 of file function.h.

◆ normalize() [4/4]

template<typename T >
void oph::normalize ( const std::vector< T > *  src,
std::vector< oph::uchar > *  dst 
)
inline

Normalize all elements from 0 to 255.

Definition at line 230 of file function.h.

◆ operator!=() [1/3]

int oph::operator!= ( const ivec2 a,
const ivec2 b 
)
inline

Definition at line 368 of file ivec.h.

◆ operator!=() [2/3]

int oph::operator!= ( const ivec3 a,
const ivec3 b 
)
inline

Definition at line 683 of file ivec.h.

◆ operator!=() [3/3]

int oph::operator!= ( const ivec4 a,
const ivec4 b 
)
inline

Definition at line 989 of file ivec.h.

◆ operator*() [1/18]

ivec2 oph::operator* ( const ivec2 a,
const ivec2 b 
)
inline

Definition at line 155 of file ivec.h.

◆ operator*() [2/18]

ivec2 oph::operator* ( int  a,
const ivec2 b 
)
inline

Definition at line 162 of file ivec.h.

◆ operator*() [3/18]

ivec2 oph::operator* ( const ivec2 a,
int  b 
)
inline

Definition at line 169 of file ivec.h.

◆ operator*() [4/18]

vec2 oph::operator* ( const vec2 a,
const vec2 b 
)
inline

Definition at line 177 of file vec.h.

◆ operator*() [5/18]

vec2 oph::operator* ( Real  a,
const vec2 b 
)
inline

Definition at line 184 of file vec.h.

◆ operator*() [6/18]

vec2 oph::operator* ( const vec2 a,
Real  b 
)
inline

Definition at line 191 of file vec.h.

◆ operator*() [7/18]

ivec3 oph::operator* ( const ivec3 a,
const ivec3 b 
)
inline

Definition at line 470 of file ivec.h.

◆ operator*() [8/18]

ivec3 oph::operator* ( int  a,
const ivec3 b 
)
inline

Definition at line 477 of file ivec.h.

◆ operator*() [9/18]

ivec3 oph::operator* ( const ivec3 a,
int  b 
)
inline

Definition at line 484 of file ivec.h.

◆ operator*() [10/18]

vec3 oph::operator* ( const vec3 a,
const vec3 b 
)
inline

Definition at line 572 of file vec.h.

◆ operator*() [11/18]

vec3 oph::operator* ( Real  a,
const vec3 b 
)
inline

Definition at line 579 of file vec.h.

◆ operator*() [12/18]

vec3 oph::operator* ( const vec3 a,
Real  b 
)
inline

Definition at line 586 of file vec.h.

◆ operator*() [13/18]

ivec4 oph::operator* ( const ivec4 a,
const ivec4 b 
)
inline

Definition at line 790 of file ivec.h.

◆ operator*() [14/18]

ivec4 oph::operator* ( int  a,
const ivec4 b 
)
inline

Definition at line 797 of file ivec.h.

◆ operator*() [15/18]

ivec4 oph::operator* ( const ivec4 a,
int  b 
)
inline

Definition at line 804 of file ivec.h.

◆ operator*() [16/18]

vec4 oph::operator* ( const vec4 a,
const vec4 b 
)
inline

Definition at line 942 of file vec.h.

◆ operator*() [17/18]

vec4 oph::operator* ( Real  a,
const vec4 b 
)
inline

Definition at line 949 of file vec.h.

◆ operator*() [18/18]

vec4 oph::operator* ( const vec4 a,
Real  b 
)
inline

Definition at line 956 of file vec.h.

◆ operator*=() [1/12]

ivec2 oph::operator*= ( ivec2 a,
const ivec2 b 
)
inline

Definition at line 228 of file ivec.h.

◆ operator*=() [2/12]

ivec2 oph::operator*= ( ivec2 a,
int  b 
)
inline

Definition at line 233 of file ivec.h.

◆ operator*=() [3/12]

vec2 oph::operator*= ( vec2 a,
const vec2 b 
)
inline

Definition at line 250 of file vec.h.

◆ operator*=() [4/12]

vec2 oph::operator*= ( vec2 a,
Real  b 
)
inline

Definition at line 255 of file vec.h.

◆ operator*=() [5/12]

ivec3 oph::operator*= ( ivec3 a,
const ivec3 b 
)
inline

Definition at line 543 of file ivec.h.

◆ operator*=() [6/12]

ivec3 oph::operator*= ( ivec3 a,
int  b 
)
inline

Definition at line 548 of file ivec.h.

◆ operator*=() [7/12]

vec3 oph::operator*= ( vec3 a,
const vec3 b 
)
inline

Definition at line 643 of file vec.h.

◆ operator*=() [8/12]

vec3 oph::operator*= ( vec3 a,
Real  b 
)
inline

Definition at line 648 of file vec.h.

◆ operator*=() [9/12]

ivec4 oph::operator*= ( ivec4 a,
const ivec4 b 
)
inline

Definition at line 863 of file ivec.h.

◆ operator*=() [10/12]

ivec4 oph::operator*= ( ivec4 a,
int  b 
)
inline

Definition at line 868 of file ivec.h.

◆ operator*=() [11/12]

vec4 oph::operator*= ( vec4 a,
const vec4 b 
)
inline

Definition at line 1015 of file vec.h.

◆ operator*=() [12/12]

vec4 oph::operator*= ( vec4 a,
Real  b 
)
inline

Definition at line 1020 of file vec.h.

◆ operator+() [1/18]

ivec2 oph::operator+ ( const ivec2 a,
const ivec2 b 
)
inline

Definition at line 109 of file ivec.h.

◆ operator+() [2/18]

ivec2 oph::operator+ ( int  a,
const ivec2 b 
)
inline

Definition at line 116 of file ivec.h.

◆ operator+() [3/18]

ivec2 oph::operator+ ( const ivec2 a,
int  b 
)
inline

Definition at line 123 of file ivec.h.

◆ operator+() [4/18]

vec2 oph::operator+ ( const vec2 a,
const vec2 b 
)
inline

Definition at line 131 of file vec.h.

◆ operator+() [5/18]

vec2 oph::operator+ ( Real  a,
const vec2 b 
)
inline

Definition at line 138 of file vec.h.

◆ operator+() [6/18]

vec2 oph::operator+ ( const vec2 a,
Real  b 
)
inline

Definition at line 145 of file vec.h.

◆ operator+() [7/18]

ivec3 oph::operator+ ( const ivec3 a,
const ivec3 b 
)
inline

Definition at line 424 of file ivec.h.

◆ operator+() [8/18]

ivec3 oph::operator+ ( int  a,
const ivec3 b 
)
inline

Definition at line 431 of file ivec.h.

◆ operator+() [9/18]

ivec3 oph::operator+ ( const ivec3 a,
int  b 
)
inline

Definition at line 438 of file ivec.h.

◆ operator+() [10/18]

vec3 oph::operator+ ( const vec3 a,
const vec3 b 
)
inline

Definition at line 526 of file vec.h.

◆ operator+() [11/18]

vec3 oph::operator+ ( Real  a,
const vec3 b 
)
inline

Definition at line 533 of file vec.h.

◆ operator+() [12/18]

vec3 oph::operator+ ( const vec3 a,
Real  b 
)
inline

Definition at line 540 of file vec.h.

◆ operator+() [13/18]

ivec4 oph::operator+ ( const ivec4 a,
const ivec4 b 
)
inline

Definition at line 744 of file ivec.h.

◆ operator+() [14/18]

ivec4 oph::operator+ ( int  a,
const ivec4 b 
)
inline

Definition at line 751 of file ivec.h.

◆ operator+() [15/18]

ivec4 oph::operator+ ( const ivec4 a,
int  b 
)
inline

Definition at line 758 of file ivec.h.

◆ operator+() [16/18]

vec4 oph::operator+ ( const vec4 a,
const vec4 b 
)
inline

Definition at line 896 of file vec.h.

◆ operator+() [17/18]

vec4 oph::operator+ ( Real  a,
const vec4 b 
)
inline

Definition at line 903 of file vec.h.

◆ operator+() [18/18]

vec4 oph::operator+ ( const vec4 a,
Real  b 
)
inline

Definition at line 910 of file vec.h.

◆ operator+=() [1/12]

ivec2 oph::operator+= ( ivec2 a,
const ivec2 b 
)
inline

Definition at line 204 of file ivec.h.

◆ operator+=() [2/12]

ivec2 oph::operator+= ( ivec2 a,
int  b 
)
inline

Definition at line 209 of file ivec.h.

◆ operator+=() [3/12]

vec2 oph::operator+= ( vec2 a,
const vec2 b 
)
inline

Definition at line 226 of file vec.h.

◆ operator+=() [4/12]

vec2 oph::operator+= ( vec2 a,
Real  b 
)
inline

Definition at line 231 of file vec.h.

◆ operator+=() [5/12]

ivec3 oph::operator+= ( ivec3 a,
const ivec3 b 
)
inline

Definition at line 519 of file ivec.h.

◆ operator+=() [6/12]

ivec3 oph::operator+= ( ivec3 a,
int  b 
)
inline

Definition at line 524 of file ivec.h.

◆ operator+=() [7/12]

vec3 oph::operator+= ( vec3 a,
const vec3 b 
)
inline

Definition at line 619 of file vec.h.

◆ operator+=() [8/12]

vec3 oph::operator+= ( vec3 a,
Real  b 
)
inline

Definition at line 624 of file vec.h.

◆ operator+=() [9/12]

ivec4 oph::operator+= ( ivec4 a,
const ivec4 b 
)
inline

Definition at line 839 of file ivec.h.

◆ operator+=() [10/12]

ivec4 oph::operator+= ( ivec4 a,
int  b 
)
inline

Definition at line 844 of file ivec.h.

◆ operator+=() [11/12]

vec4 oph::operator+= ( vec4 a,
const vec4 b 
)
inline

Definition at line 991 of file vec.h.

◆ operator+=() [12/12]

vec4 oph::operator+= ( vec4 a,
Real  b 
)
inline

Definition at line 996 of file vec.h.

◆ operator-() [1/24]

ivec2 oph::operator- ( const ivec2 a,
const ivec2 b 
)
inline

Definition at line 132 of file ivec.h.

◆ operator-() [2/24]

ivec2 oph::operator- ( int  a,
const ivec2 b 
)
inline

Definition at line 139 of file ivec.h.

◆ operator-() [3/24]

ivec2 oph::operator- ( const ivec2 a,
int  b 
)
inline

Definition at line 146 of file ivec.h.

◆ operator-() [4/24]

vec2 oph::operator- ( const vec2 a,
const vec2 b 
)
inline

Definition at line 154 of file vec.h.

◆ operator-() [5/24]

vec2 oph::operator- ( Real  a,
const vec2 b 
)
inline

Definition at line 161 of file vec.h.

◆ operator-() [6/24]

vec2 oph::operator- ( const vec2 a,
Real  b 
)
inline

Definition at line 168 of file vec.h.

◆ operator-() [7/24]

ivec2 oph::operator- ( const ivec2 a)
inline

Definition at line 376 of file ivec.h.

◆ operator-() [8/24]

vec2 oph::operator- ( const vec2 a)
inline

Definition at line 393 of file vec.h.

◆ operator-() [9/24]

ivec3 oph::operator- ( const ivec3 a,
const ivec3 b 
)
inline

Definition at line 447 of file ivec.h.

◆ operator-() [10/24]

ivec3 oph::operator- ( int  a,
const ivec3 b 
)
inline

Definition at line 454 of file ivec.h.

◆ operator-() [11/24]

ivec3 oph::operator- ( const ivec3 a,
int  b 
)
inline

Definition at line 461 of file ivec.h.

◆ operator-() [12/24]

vec3 oph::operator- ( const vec3 a,
const vec3 b 
)
inline

Definition at line 549 of file vec.h.

◆ operator-() [13/24]

vec3 oph::operator- ( Real  a,
const vec3 b 
)
inline

Definition at line 556 of file vec.h.

◆ operator-() [14/24]

vec3 oph::operator- ( const vec3 a,
Real  b 
)
inline

Definition at line 563 of file vec.h.

◆ operator-() [15/24]

ivec3 oph::operator- ( const ivec3 a)
inline

Definition at line 691 of file ivec.h.

◆ operator-() [16/24]

ivec4 oph::operator- ( const ivec4 a,
const ivec4 b 
)
inline

Definition at line 767 of file ivec.h.

◆ operator-() [17/24]

ivec4 oph::operator- ( int  a,
const ivec4 b 
)
inline

Definition at line 774 of file ivec.h.

◆ operator-() [18/24]

ivec4 oph::operator- ( const ivec4 a,
int  b 
)
inline

Definition at line 781 of file ivec.h.

◆ operator-() [19/24]

vec3 oph::operator- ( const vec3 a)
inline

Definition at line 786 of file vec.h.

◆ operator-() [20/24]

vec4 oph::operator- ( const vec4 a,
const vec4 b 
)
inline

Definition at line 919 of file vec.h.

◆ operator-() [21/24]

vec4 oph::operator- ( Real  a,
const vec4 b 
)
inline

Definition at line 926 of file vec.h.

◆ operator-() [22/24]

vec4 oph::operator- ( const vec4 a,
Real  b 
)
inline

Definition at line 933 of file vec.h.

◆ operator-() [23/24]

ivec4 oph::operator- ( const ivec4 a)
inline

Definition at line 1013 of file ivec.h.

◆ operator-() [24/24]

vec4 oph::operator- ( const vec4 a)
inline

Definition at line 1158 of file vec.h.

◆ operator-=() [1/12]

ivec2 oph::operator-= ( ivec2 a,
const ivec2 b 
)
inline

Definition at line 216 of file ivec.h.

◆ operator-=() [2/12]

ivec2 oph::operator-= ( ivec2 a,
int  b 
)
inline

Definition at line 221 of file ivec.h.

◆ operator-=() [3/12]

vec2 oph::operator-= ( vec2 a,
const vec2 b 
)
inline

Definition at line 238 of file vec.h.

◆ operator-=() [4/12]

vec2 oph::operator-= ( vec2 a,
Real  b 
)
inline

Definition at line 243 of file vec.h.

◆ operator-=() [5/12]

ivec3 oph::operator-= ( ivec3 a,
const ivec3 b 
)
inline

Definition at line 531 of file ivec.h.

◆ operator-=() [6/12]

ivec3 oph::operator-= ( ivec3 a,
int  b 
)
inline

Definition at line 536 of file ivec.h.

◆ operator-=() [7/12]

vec3 oph::operator-= ( vec3 a,
const vec3 b 
)
inline

Definition at line 631 of file vec.h.

◆ operator-=() [8/12]

vec3 oph::operator-= ( vec3 a,
Real  b 
)
inline

Definition at line 636 of file vec.h.

◆ operator-=() [9/12]

ivec4 oph::operator-= ( ivec4 a,
const ivec4 b 
)
inline

Definition at line 851 of file ivec.h.

◆ operator-=() [10/12]

ivec4 oph::operator-= ( ivec4 a,
int  b 
)
inline

Definition at line 856 of file ivec.h.

◆ operator-=() [11/12]

vec4 oph::operator-= ( vec4 a,
const vec4 b 
)
inline

Definition at line 1003 of file vec.h.

◆ operator-=() [12/12]

vec4 oph::operator-= ( vec4 a,
Real  b 
)
inline

Definition at line 1008 of file vec.h.

◆ operator/() [1/9]

vec2 oph::operator/ ( const vec2 a,
const vec2 b 
)
inline

Definition at line 200 of file vec.h.

◆ operator/() [2/9]

vec2 oph::operator/ ( Real  a,
const vec2 b 
)
inline

Definition at line 207 of file vec.h.

◆ operator/() [3/9]

vec2 oph::operator/ ( const vec2 a,
Real  b 
)
inline

Definition at line 214 of file vec.h.

◆ operator/() [4/9]

vec3 oph::operator/ ( const vec3 a,
const vec3 b 
)
inline

Definition at line 595 of file vec.h.

◆ operator/() [5/9]

vec3 oph::operator/ ( Real  a,
const vec3 b 
)
inline

Definition at line 602 of file vec.h.

◆ operator/() [6/9]

vec3 oph::operator/ ( const vec3 a,
Real  b 
)
inline

Definition at line 609 of file vec.h.

◆ operator/() [7/9]

vec4 oph::operator/ ( const vec4 a,
const vec4 b 
)
inline

Definition at line 965 of file vec.h.

◆ operator/() [8/9]

vec4 oph::operator/ ( Real  a,
const vec4 b 
)
inline

Definition at line 972 of file vec.h.

◆ operator/() [9/9]

vec4 oph::operator/ ( const vec4 a,
Real  b 
)
inline

Definition at line 979 of file vec.h.

◆ operator/=() [1/6]

vec2 oph::operator/= ( vec2 a,
const vec2 b 
)
inline

Definition at line 262 of file vec.h.

◆ operator/=() [2/6]

vec2 oph::operator/= ( vec2 a,
Real  b 
)
inline

Definition at line 267 of file vec.h.

◆ operator/=() [3/6]

vec3 oph::operator/= ( vec3 a,
const vec3 b 
)
inline

Definition at line 655 of file vec.h.

◆ operator/=() [4/6]

vec3 oph::operator/= ( vec3 a,
Real  b 
)
inline

Definition at line 660 of file vec.h.

◆ operator/=() [5/6]

vec4 oph::operator/= ( vec4 a,
const vec4 b 
)
inline

Definition at line 1027 of file vec.h.

◆ operator/=() [6/6]

vec4 oph::operator/= ( vec4 a,
Real  b 
)
inline

Definition at line 1032 of file vec.h.

◆ operator<() [1/18]

int oph::operator< ( const ivec2 a,
const ivec2 b 
)
inline

Definition at line 278 of file ivec.h.

◆ operator<() [2/18]

int oph::operator< ( int  a,
const ivec2 b 
)
inline

Definition at line 285 of file ivec.h.

◆ operator<() [3/18]

int oph::operator< ( const ivec2 a,
int  b 
)
inline

Definition at line 292 of file ivec.h.

◆ operator<() [4/18]

int oph::operator< ( const vec2 a,
const vec2 b 
)
inline

Definition at line 300 of file vec.h.

◆ operator<() [5/18]

int oph::operator< ( Real  a,
const vec2 b 
)
inline

Definition at line 307 of file vec.h.

◆ operator<() [6/18]

int oph::operator< ( const vec2 a,
Real  b 
)
inline

Definition at line 314 of file vec.h.

◆ operator<() [7/18]

int oph::operator< ( const ivec3 a,
const ivec3 b 
)
inline

Definition at line 593 of file ivec.h.

◆ operator<() [8/18]

int oph::operator< ( int  a,
const ivec3 b 
)
inline

Definition at line 600 of file ivec.h.

◆ operator<() [9/18]

int oph::operator< ( const ivec3 a,
int  b 
)
inline

Definition at line 607 of file ivec.h.

◆ operator<() [10/18]

int oph::operator< ( const vec3 a,
const vec3 b 
)
inline

Definition at line 693 of file vec.h.

◆ operator<() [11/18]

int oph::operator< ( Real  a,
const vec3 b 
)
inline

Definition at line 700 of file vec.h.

◆ operator<() [12/18]

int oph::operator< ( const vec3 a,
Real  b 
)
inline

Definition at line 707 of file vec.h.

◆ operator<() [13/18]

int oph::operator< ( const ivec4 a,
const ivec4 b 
)
inline

Definition at line 913 of file ivec.h.

◆ operator<() [14/18]

int oph::operator< ( int  a,
const ivec4 b 
)
inline

Definition at line 920 of file ivec.h.

◆ operator<() [15/18]

int oph::operator< ( const ivec4 a,
int  b 
)
inline

Definition at line 927 of file ivec.h.

◆ operator<() [16/18]

int oph::operator< ( const vec4 a,
const vec4 b 
)
inline

Definition at line 1065 of file vec.h.

◆ operator<() [17/18]

int oph::operator< ( Real  a,
const vec4 b 
)
inline

Definition at line 1072 of file vec.h.

◆ operator<() [18/18]

int oph::operator< ( const vec4 a,
Real  b 
)
inline

Definition at line 1079 of file vec.h.

◆ operator<=() [1/18]

int oph::operator<= ( const ivec2 a,
const ivec2 b 
)
inline

Definition at line 301 of file ivec.h.

◆ operator<=() [2/18]

int oph::operator<= ( int  a,
const ivec2 b 
)
inline

Definition at line 308 of file ivec.h.

◆ operator<=() [3/18]

int oph::operator<= ( const ivec2 a,
int  b 
)
inline

Definition at line 315 of file ivec.h.

◆ operator<=() [4/18]

int oph::operator<= ( const vec2 a,
const vec2 b 
)
inline

Definition at line 323 of file vec.h.

◆ operator<=() [5/18]

int oph::operator<= ( Real  a,
const vec2 b 
)
inline

Definition at line 330 of file vec.h.

◆ operator<=() [6/18]

int oph::operator<= ( const vec2 a,
Real  b 
)
inline

Definition at line 337 of file vec.h.

◆ operator<=() [7/18]

int oph::operator<= ( const ivec3 a,
const ivec3 b 
)
inline

Definition at line 616 of file ivec.h.

◆ operator<=() [8/18]

int oph::operator<= ( int  a,
const ivec3 b 
)
inline

Definition at line 623 of file ivec.h.

◆ operator<=() [9/18]

int oph::operator<= ( const ivec3 a,
int  b 
)
inline

Definition at line 630 of file ivec.h.

◆ operator<=() [10/18]

int oph::operator<= ( const vec3 a,
const vec3 b 
)
inline

Definition at line 716 of file vec.h.

◆ operator<=() [11/18]

int oph::operator<= ( Real  a,
const vec3 b 
)
inline

Definition at line 723 of file vec.h.

◆ operator<=() [12/18]

int oph::operator<= ( const vec3 a,
Real  b 
)
inline

Definition at line 730 of file vec.h.

◆ operator<=() [13/18]

int oph::operator<= ( const ivec4 a,
const ivec4 b 
)
inline

Definition at line 936 of file ivec.h.

◆ operator<=() [14/18]

int oph::operator<= ( int  a,
const ivec4 b 
)
inline

Definition at line 943 of file ivec.h.

◆ operator<=() [15/18]

int oph::operator<= ( const ivec4 a,
int  b 
)
inline

Definition at line 950 of file ivec.h.

◆ operator<=() [16/18]

int oph::operator<= ( const vec4 a,
const vec4 b 
)
inline

Definition at line 1088 of file vec.h.

◆ operator<=() [17/18]

int oph::operator<= ( Real  a,
const vec4 b 
)
inline

Definition at line 1095 of file vec.h.

◆ operator<=() [18/18]

int oph::operator<= ( const vec4 a,
Real  b 
)
inline

Definition at line 1102 of file vec.h.

◆ operator==() [1/18]

int oph::operator== ( const ivec2 a,
const ivec2 b 
)
inline

Definition at line 255 of file ivec.h.

◆ operator==() [2/18]

int oph::operator== ( int  a,
const ivec2 b 
)
inline

Definition at line 262 of file ivec.h.

◆ operator==() [3/18]

int oph::operator== ( const ivec2 a,
int  b 
)
inline

Definition at line 269 of file ivec.h.

◆ operator==() [4/18]

int oph::operator== ( const vec2 a,
const vec2 b 
)
inline

Definition at line 277 of file vec.h.

◆ operator==() [5/18]

int oph::operator== ( Real  a,
const vec2 b 
)
inline

Definition at line 284 of file vec.h.

◆ operator==() [6/18]

int oph::operator== ( const vec2 a,
Real  b 
)
inline

Definition at line 291 of file vec.h.

◆ operator==() [7/18]

int oph::operator== ( const ivec3 a,
const ivec3 b 
)
inline

Definition at line 570 of file ivec.h.

◆ operator==() [8/18]

int oph::operator== ( int  a,
const ivec3 b 
)
inline

Definition at line 577 of file ivec.h.

◆ operator==() [9/18]

int oph::operator== ( const ivec3 a,
int  b 
)
inline

Definition at line 584 of file ivec.h.

◆ operator==() [10/18]

int oph::operator== ( const vec3 a,
const vec3 b 
)
inline

Definition at line 670 of file vec.h.

◆ operator==() [11/18]

int oph::operator== ( Real  a,
const vec3 b 
)
inline

Definition at line 677 of file vec.h.

◆ operator==() [12/18]

int oph::operator== ( const vec3 a,
Real  b 
)
inline

Definition at line 684 of file vec.h.

◆ operator==() [13/18]

int oph::operator== ( const ivec4 a,
const ivec4 b 
)
inline

Definition at line 890 of file ivec.h.

◆ operator==() [14/18]

int oph::operator== ( int  a,
const ivec4 b 
)
inline

Definition at line 897 of file ivec.h.

◆ operator==() [15/18]

int oph::operator== ( const ivec4 a,
int  b 
)
inline

Definition at line 904 of file ivec.h.

◆ operator==() [16/18]

int oph::operator== ( const vec4 a,
const vec4 b 
)
inline

Definition at line 1042 of file vec.h.

◆ operator==() [17/18]

int oph::operator== ( Real  a,
const vec4 b 
)
inline

Definition at line 1049 of file vec.h.

◆ operator==() [18/18]

int oph::operator== ( const vec4 a,
Real  b 
)
inline

Definition at line 1056 of file vec.h.

◆ operator>() [1/18]

int oph::operator> ( const ivec2 a,
const ivec2 b 
)
inline

Definition at line 324 of file ivec.h.

◆ operator>() [2/18]

int oph::operator> ( int  a,
const ivec2 b 
)
inline

Definition at line 331 of file ivec.h.

◆ operator>() [3/18]

int oph::operator> ( const ivec2 a,
int  b 
)
inline

Definition at line 338 of file ivec.h.

◆ operator>() [4/18]

int oph::operator> ( const vec2 a,
const vec2 b 
)
inline

Definition at line 346 of file vec.h.

◆ operator>() [5/18]

int oph::operator> ( Real  a,
const vec2 b 
)
inline

Definition at line 353 of file vec.h.

◆ operator>() [6/18]

int oph::operator> ( const vec2 a,
Real  b 
)
inline

Definition at line 360 of file vec.h.

◆ operator>() [7/18]

int oph::operator> ( const ivec3 a,
const ivec3 b 
)
inline

Definition at line 639 of file ivec.h.

◆ operator>() [8/18]

int oph::operator> ( int  a,
const ivec3 b 
)
inline

Definition at line 646 of file ivec.h.

◆ operator>() [9/18]

int oph::operator> ( const ivec3 a,
int  b 
)
inline

Definition at line 653 of file ivec.h.

◆ operator>() [10/18]

int oph::operator> ( const vec3 a,
const vec3 b 
)
inline

Definition at line 739 of file vec.h.

◆ operator>() [11/18]

int oph::operator> ( Real  a,
const vec3 b 
)
inline

Definition at line 746 of file vec.h.

◆ operator>() [12/18]

int oph::operator> ( const vec3 a,
Real  b 
)
inline

Definition at line 753 of file vec.h.

◆ operator>() [13/18]

int oph::operator> ( const ivec4 a,
const ivec4 b 
)
inline

Definition at line 959 of file ivec.h.

◆ operator>() [14/18]

int oph::operator> ( int  a,
const ivec4 b 
)
inline

Definition at line 966 of file ivec.h.

◆ operator>() [15/18]

int oph::operator> ( const ivec4 a,
int  b 
)
inline

Definition at line 973 of file ivec.h.

◆ operator>() [16/18]

int oph::operator> ( const vec4 a,
const vec4 b 
)
inline

Definition at line 1111 of file vec.h.

◆ operator>() [17/18]

int oph::operator> ( Real  a,
const vec4 b 
)
inline

Definition at line 1118 of file vec.h.

◆ operator>() [18/18]

int oph::operator> ( const vec4 a,
Real  b 
)
inline

Definition at line 1125 of file vec.h.

◆ operator>=() [1/18]

int oph::operator>= ( const ivec2 a,
const ivec2 b 
)
inline

Definition at line 348 of file ivec.h.

◆ operator>=() [2/18]

int oph::operator>= ( int  a,
const ivec2 b 
)
inline

Definition at line 354 of file ivec.h.

◆ operator>=() [3/18]

int oph::operator>= ( const ivec2 a,
int  b 
)
inline

Definition at line 361 of file ivec.h.

◆ operator>=() [4/18]

int oph::operator>= ( const vec2 a,
const vec2 b 
)
inline

Definition at line 369 of file vec.h.

◆ operator>=() [5/18]

int oph::operator>= ( Real  a,
const vec2 b 
)
inline

Definition at line 376 of file vec.h.

◆ operator>=() [6/18]

int oph::operator>= ( const vec2 a,
Real  b 
)
inline

Definition at line 383 of file vec.h.

◆ operator>=() [7/18]

int oph::operator>= ( const ivec3 a,
const ivec3 b 
)
inline

Definition at line 662 of file ivec.h.

◆ operator>=() [8/18]

int oph::operator>= ( int  a,
const ivec3 b 
)
inline

Definition at line 669 of file ivec.h.

◆ operator>=() [9/18]

int oph::operator>= ( const ivec3 a,
int  b 
)
inline

Definition at line 676 of file ivec.h.

◆ operator>=() [10/18]

int oph::operator>= ( const vec3 a,
const vec3 b 
)
inline

Definition at line 762 of file vec.h.

◆ operator>=() [11/18]

int oph::operator>= ( Real  a,
const vec3 b 
)
inline

Definition at line 769 of file vec.h.

◆ operator>=() [12/18]

int oph::operator>= ( const vec3 a,
Real  b 
)
inline

Definition at line 776 of file vec.h.

◆ operator>=() [13/18]

int oph::operator>= ( const ivec4 a,
const ivec4 b 
)
inline

Definition at line 982 of file ivec.h.

◆ operator>=() [14/18]

int oph::operator>= ( int  a,
const ivec4 b 
)
inline

Definition at line 996 of file ivec.h.

◆ operator>=() [15/18]

int oph::operator>= ( const ivec4 a,
int  b 
)
inline

Definition at line 1003 of file ivec.h.

◆ operator>=() [16/18]

int oph::operator>= ( const vec4 a,
const vec4 b 
)
inline

Definition at line 1134 of file vec.h.

◆ operator>=() [17/18]

int oph::operator>= ( Real  a,
const vec4 b 
)
inline

Definition at line 1141 of file vec.h.

◆ operator>=() [18/18]

int oph::operator>= ( const vec4 a,
Real  b 
)
inline

Definition at line 1148 of file vec.h.

◆ proj() [1/3]

vec2 oph::proj ( const vec2 axis,
const vec2 a 
)
inline

Definition at line 446 of file vec.h.

◆ proj() [2/3]

vec3 oph::proj ( const vec3 axis,
const vec3 a 
)
inline

Definition at line 849 of file vec.h.

◆ proj() [3/3]

vec4 oph::proj ( const vec4 axis,
const vec4 a 
)
inline

Definition at line 1220 of file vec.h.

◆ rand() [1/2]

Real oph::rand ( const Real  min,
const Real  max,
oph::ulong  _SEED_VALUE = 0 
)
inline

Get random Real value from min to max.

Parameters
[in]minminimum value.
[in]maxmaximum value.
[in]_SEED_VALUE: Random seed value can be used to create a specific random number pattern
If the seed values are the same, random numbers of the same pattern are always output.
Returns
Type: Real
The return value is random value.

Definition at line 294 of file function.h.

◆ rand() [2/2]

int oph::rand ( const int  min,
const int  max,
oph::ulong  _SEED_VALUE = 0 
)
inline

Get random Integer value from min to max.

Parameters
[in]minminimum value.
[in]maxmaximum value.
[in]_SEED_VALUE: Random seed value can be used to create a specific random number pattern
If the seed values are the same, random numbers of the same pattern are always output.
Returns
Type: int
The return value is random value.

Definition at line 313 of file function.h.

◆ realPart()

template<typename T >
void oph::realPart ( const oph::Complex< T > *  src,
T *  dst,
const int &  size 
)
inline

Definition at line 152 of file function.h.

◆ reset_u_epsilon()

void oph::reset_u_epsilon ( )

Definition at line 73 of file epsilon.cpp.

◆ reset_zero_epsilon()

void oph::reset_zero_epsilon ( )

Definition at line 83 of file epsilon.cpp.

◆ set_u_epsilon()

void oph::set_u_epsilon ( Real  a)

Definition at line 68 of file epsilon.cpp.

◆ set_zero_epsilon()

void oph::set_zero_epsilon ( Real  a)

Definition at line 77 of file epsilon.cpp.

◆ squaredNorm() [1/3]

Real oph::squaredNorm ( const vec2 a)
inline

Definition at line 422 of file vec.h.

◆ squaredNorm() [2/3]

Real oph::squaredNorm ( const vec3 a)
inline

Definition at line 820 of file vec.h.

◆ squaredNorm() [3/3]

Real oph::squaredNorm ( const vec4 a)
inline

Definition at line 1192 of file vec.h.

◆ store() [1/3]

void oph::store ( FILE *  fp,
const vec2 v 
)

Definition at line 127 of file vec.cpp.

◆ store() [2/3]

void oph::store ( FILE *  fp,
const vec3 v 
)

Definition at line 344 of file vec.cpp.

◆ store() [3/3]

void oph::store ( FILE *  fp,
const vec4 v 
)

Definition at line 403 of file vec.cpp.

◆ sum() [1/3]

Real oph::sum ( const vec2 a)
inline

Definition at line 401 of file vec.h.

◆ sum() [2/3]

Real oph::sum ( const vec3 a)
inline

Definition at line 801 of file vec.h.

◆ sum() [3/3]

Real oph::sum ( const vec4 a)
inline

Definition at line 1172 of file vec.h.

◆ unit() [1/3]

vec2 oph::unit ( const vec2 a)
inline

Definition at line 426 of file vec.h.

◆ unit() [2/3]

vec3 oph::unit ( const vec3 a)
inline

Definition at line 829 of file vec.h.

◆ unit() [3/3]

vec4 oph::unit ( const vec4 a)
inline

Definition at line 1200 of file vec.h.

Variable Documentation

◆ angle_tolerance

Real oph::angle_tolerance = M_PI/180.0

Definition at line 60 of file epsilon.cpp.

◆ epsilon

Real oph::epsilon = 1.0e-8

Definition at line 53 of file epsilon.cpp.

◆ intersection_epsilon

Real oph::intersection_epsilon = 1e-6

Definition at line 55 of file epsilon.cpp.

◆ save_zero_epsilon

Real oph::save_zero_epsilon = 1.0e-12

Definition at line 61 of file epsilon.cpp.

◆ sqrt_epsilon

Real oph::sqrt_epsilon = 1.490116119385000000e-8

Definition at line 56 of file epsilon.cpp.

◆ unset_value

Real oph::unset_value = -1.23432101234321e+308

Definition at line 57 of file epsilon.cpp.

◆ user_epsilon

Real oph::user_epsilon = 1.0e-8

Definition at line 54 of file epsilon.cpp.

◆ zero_epsilon

Real oph::zero_epsilon = 1.0e-12

Definition at line 59 of file epsilon.cpp.

◆ zero_tolerance

Real oph::zero_tolerance = 1.0e-12

Definition at line 58 of file epsilon.cpp.