Mir 1.0
Mir application programming interface
Copying of objects

Macros

#define mirml_mh_m_copy(in, out)   mirml_mh_m_copy_(in,out,0,0)
 Copy complete matrix.
 
#define mirml_mh_v_copy(in, out)   mirml_mh_v_copy_(in,out,0)
 Copy complete vector.
 
#define mirml_mh_iv_copy(in, out)   mirml_mh_iv_copy_(in,out,0)
 Copy complete i-vector.
 
#define mirml_mh_i64v_copy(in, out)   mirml_mh_i64v_copy_(in,out,0)
 Copy complete i64-vector.
 

Functions

mirkl_error_tmirml_mh_m_copy_ (const mirml_mh_matrix_t *in, mirml_mh_matrix_t **out, mirkl_size_t i0, mirkl_size_t j0)
 Copies matrix into new area out(i0:m,j0:n) <- in(i0:m,j0:n)
 
mirkl_error_tmirml_mh_v_copy_ (const mirml_mh_vector_t *in, mirml_mh_vector_t **out, mirkl_size_t i0)
 Copies vector into new area out(i0:dim) <- in(i0:dim)
 
mirkl_error_tmirml_mh_iv_copy_ (const mirml_mh_ivector_t *in, mirml_mh_ivector_t **out, mirkl_size_t i0)
 Copies vector of integers into new area out(i0:dim) <- in(i0:dim)
 
mirkl_error_tmirml_mh_i64v_copy_ (const mirml_mh_i64vector_t *in, mirml_mh_i64vector_t **out, mirkl_size_t i0)
 Copies vector of 64-bit integers into new area out(i0:dim) <- in(i0:dim)
 
mirkl_error_tmirml_mh_px_copy (const mirml_mh_permutation_t *in, mirml_mh_permutation_t **out)
 Copies permutation in to out. out is resized to in->size.
 
mirkl_error_tmirml_mh_iter_copy2 (mirml_mh_iter_t *ip1, mirml_mh_iter_t **ip2)
 Copy the structure ip1 to ip2. More...
 
mirkl_error_tmirml_mh_iter_copy (const mirml_mh_iter_t *ip1, mirml_mh_iter_t **ip2)
 Copy the structure ip1 to ip2. More...
 

Detailed Description

Function Documentation

◆ mirml_mh_iter_copy()

mirkl_error_t * mirml_mh_iter_copy ( const mirml_mh_iter_t ip1,
mirml_mh_iter_t **  ip2 
)

Copy the structure ip1 to ip2.

Vectors x and b are also copied.

◆ mirml_mh_iter_copy2()

mirkl_error_t * mirml_mh_iter_copy2 ( mirml_mh_iter_t ip1,
mirml_mh_iter_t **  ip2 
)

Copy the structure ip1 to ip2.

Vectors x and b of ip2 are preserved (vectors x and b in ip2 are the same before and after this function) If ip2 == NULL then a new structure is created with x and b being NULL and other members are taken from ip1.