7.1
general documentation
cs_array.h File Reference
#include "cs_defs.h"
+ Include dependency graph for cs_array.h:

Go to the source code of this file.

Functions

void cs_array_copy_real (cs_lnum_t n_elts, cs_lnum_t dim, const cs_real_t src[], cs_real_t dest[restrict])
 Copy real values from an array to another of the same dimensions. More...
 
void cs_array_set_value_real (cs_lnum_t n_elts, cs_lnum_t dim, cs_real_t v, cs_real_t a[])
 Assign a constant value to an array. More...
 

Function Documentation

◆ cs_array_copy_real()

void cs_array_copy_real ( cs_lnum_t  n_elts,
cs_lnum_t  dim,
const cs_real_t  src[],
cs_real_t  dest[restrict] 
)

Copy real values from an array to another of the same dimensions.

Parameters
[in]n_eltsnumber of associated elements
[in]dimassociated dimension
[in]srcsource array values (size: n_elts*dim]
[out]destdestination array values (size: n_elts*dim]

◆ cs_array_set_value_real()

void cs_array_set_value_real ( cs_lnum_t  n_elts,
cs_lnum_t  dim,
cs_real_t  v,
cs_real_t  a[] 
)

Assign a constant value to an array.

Parameters
[in]n_eltsnumber of associated elements
[in]dimassociated dimension
[in]vvalue to assign
[out]aarray values (size: n_elts*dim]