Mir 1.0
Mir application programming interface

Functions

mirkl_error_tmir_complex_instance_create (mirkl_object_t **obj, double complex val, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool)
 
mirkl_error_tmir_complex_instance_create_dbl (mirkl_object_t **obj, double rp, double ip, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool)
 
mirkl_error_tmir_complex_set_data (mirkl_object_t *obj, double complex val)
 
mirkl_error_tmir_complex_set_data_dbl (mirkl_object_t *obj, double rp, double ip)
 
mirkl_error_tmir_complex_get_data_dbl (mirkl_object_t *obj, double *rp, double *ip)
 

Variables

mirkl_object_t * MirComplexClass
 Complex class.
 

Detailed Description

Function Documentation

◆ mir_complex_instance_create()

mirkl_error_t * mir_complex_instance_create ( mirkl_object_t **  obj,
double complex  val,
mirkl_uint32_t  flags,
mir_prsdata_t *  pp,
apr_pool_t *  pool,
apr_pool_t *  tmp_pool 
)

Creation of Complex object.

Parameters
[out]objReference to the created object.
[in]valValue for initialization.
[in]flagsFlags of the object.
[in]ppReference to the parser data structure.
[in]poolThe pool to use for allocations of object structures. Should be valid as long as the created object lives.
[in]tmp_poolThe pool for temporary allocations. Can be deleted after calling this function.

◆ mir_complex_instance_create_dbl()

mirkl_error_t * mir_complex_instance_create_dbl ( mirkl_object_t **  obj,
double  rp,
double  ip,
mirkl_uint32_t  flags,
mir_prsdata_t *  pp,
apr_pool_t *  pool,
apr_pool_t *  tmp_pool 
)

Creation of Complex object.

Parameters
[out]objReference to the created object.
[in]rpReal part value for initialization.
[in]ipImaginary part value for initialization.
[in]flagsFlags of the object.
[in]ppReference to the parser data structure.
[in]poolThe pool to use for allocations of object structures. Should be valid as long as the created object lives.
[in]tmp_poolThe pool for temporary allocations. Can be deleted after calling this function.

◆ mir_complex_set_data()

mirkl_error_t * mir_complex_set_data ( mirkl_object_t *  obj,
double complex  val 
)

Sets the value of complex number.

Parameters
[in]objReference to the object.
[in]calNew value of the complex number.

◆ mir_complex_set_data_dbl()

mirkl_error_t * mir_complex_set_data_dbl ( mirkl_object_t *  obj,
double  rp,
double  ip 
)

Sets the value from two double variables.

Parameters
[in]objReference to the object.
[in]rpReal part.
[in]ipImaginary part.