Go to the source code of this file.
Typedefs | |
typedef cs_real_t() | cs_cdo_blas_dotprod_t(const cs_real_t *a, const cs_real_t *b) |
Generic function pointer for computing a dot product. Parallel synchronization is performed. More... | |
typedef cs_real_t() | cs_cdo_blas_square_norm_t(const cs_real_t *array) |
Generic function pointer for computing a square norm. Parallel synchronization is performed. More... | |
typedef cs_real_t() | cs_cdo_blas_square_norm_diff_t(const cs_real_t *a, const cs_real_t *b) |
Generic function pointer for computing a square norm of the difference between two arrays (defined at the same location and of the same dimension). The result may be normalized by the norm of the second array. Parallel synchronization is performed. More... | |
Functions | |
void | cs_cdo_blas_init_sharing (const cs_cdo_quantities_t *quant, const cs_cdo_connect_t *connect) |
Set shared pointers to main domain members. More... | |
cs_real_t | cs_cdo_blas_square_norm_pcsp (const cs_real_t *array) |
Compute the square norm of an array Case of a scalar-valued array defined as a potential at primal cells. Thus, the weigth is the cell volume. The computed quantities are synchronized in parallel. More... | |
cs_real_t | cs_cdo_blas_square_norm_pcsp_diff (const cs_real_t *a, const cs_real_t *b) |
Compute the norm ||b - a||**2 Case of two scalar-valued arrays a and b defined as a potential at primal cells. Thus, the weigth is the cell volume. The computed quantities are synchronized in parallel. More... | |
cs_real_t | cs_cdo_blas_square_norm_pcsp_ndiff (const cs_real_t *a, const cs_real_t *ref) |
Compute the norm ||a - ref||**2 / || ref||**2 Case of two scalar-valued arrays a and ref defined as a potential at primal cells. Thus, the weigth is the cell volume. The computed quantities are synchronized in parallel. "ndiff" stands for "normalized difference". More... | |
double | cs_cdo_blas_dotprod_vertex (const cs_real_t *a, const cs_real_t *b) |
Compute the dot product of two arrays using the classical Euclidean dot product (without weight). Case of a scalar-valued arrays defined at primal vertices. The computed quantity is synchronized in parallel. More... | |
double | cs_cdo_blas_square_norm_vertex (const cs_real_t *array) |
Compute the square norm of an array using an Euclidean 2-norm. Case of a scalar-valued array defined at primal vertices. The computed quantities are synchronized in parallel. More... | |
double | cs_cdo_blas_dotprod_pvsp (const cs_real_t *a, const cs_real_t *b) |
Compute the dot product of two arrays using a weighted Euclidean dot product relying on CDO quantities. Case of a scalar-valued arrays defined as a potential at primal vertices. Thus, the weigth is the portion of dual cell (associated to a primal vertex) inside a primal cell. The computed quantity is synchronized in parallel. More... | |
cs_real_t | cs_cdo_blas_square_norm_pvsp (const cs_real_t *array) |
Compute the square norm of an array Case of a scalar-valued array defined as a potential at primal vertices. Thus, the weigth is the portion of dual cell inside each (primal cell). The computed quantities are synchronized in parallel. More... | |
cs_real_t | cs_cdo_blas_square_norm_pvsp_diff (const cs_real_t *a, const cs_real_t *b) |
Compute the norm ||b - a||**2 Case of two scalar-valued arrays a and b defined as a potential at primal vertices. Thus, the weigth is the portion of dual cell in a primal cell. The computed quantities are synchronized in parallel. More... | |
double | cs_cdo_blas_square_norm_2pvsp (const cs_real_t *array) |
Compute the square norm of an array Case of a non-interlaced scalar-valued array of stride = 2 defined as a potential at primal vertices. Thus, the weigth is the portion of dual cell (associated to a primal vertex) inside a primal cell. The computed quantity is synchronized in parallel. More... | |
double | cs_cdo_blas_dotprod_2pvsp (const cs_real_t *a, const cs_real_t *b) |
Compute the dot product of two arrays using a weighted Euclidean dot product relying on CDO quantities. Case of non-interlaced scalar-valued arrays of stride = 2 defined as a potential at primal vertices. Thus, the weigth is the portion of dual cell (associated to a primal vertex) inside a primal cell. The computed quantity is synchronized in parallel. More... | |
cs_real_t | cs_cdo_blas_dotprod_face (const cs_real_t *a, const cs_real_t *b) |
Compute the dot product of two arrays using the classical Euclidean dot product (without weight). Case of a scalar-valued arrays defined at primal faces. The computed quantity is synchronized in parallel. More... | |
cs_real_t | cs_cdo_blas_square_norm_face (const cs_real_t *array) |
Compute the square norm of an array using an Euclidean 2-norm. Case of a scalar-valued array defined at primal faces. The computed quantities are synchronized in parallel. More... | |
cs_real_t | cs_cdo_blas_square_norm_pfsp (const cs_real_t *array) |
Compute the square norm of an array Case of a scalar-valued array defined as a potential at primal faces. Thus, the weigth is the pyramid of apex the cell center and of basis the face. The computed quantities are synchronized in parallel. More... | |
cs_real_t | cs_cdo_blas_square_norm_pfvp (const cs_real_t *array) |
Compute the square norm of an array Case of a vector-valued array defined as a potential at primal faces. Thus, the weigth is the pyramid of apex the cell center and of basis the face. The computed quantities are synchronized in parallel. More... | |
cs_real_t | cs_cdo_blas_dotprod_pfsf (const cs_real_t *a, const cs_real_t *b) |
Compute the dot product of two arrays using a weighted Euclidean dot product relying on CDO quantities. Case of a scalar-valued arrays defined as a flux at primal faces. Thus, the weigth is the pyramid of apex the cell center and of basis the face. Each face quantity is normalized by the face surface. The computed quantity is synchronized in parallel. More... | |
cs_real_t | cs_cdo_blas_square_norm_pfsf (const cs_real_t *array) |
Compute the square norm of an array Case of a scalar-valued array defined as a flux at primal faces. Thus, the weigth is the pyramid of apex the cell center and of basis the face. Each face quantity is normalized by the face surface. The computed quantities are synchronized in parallel. More... | |
cs_real_t | cs_cdo_blas_square_norm_pfsf_diff (const cs_real_t *a, const cs_real_t *b) |
Compute the norm ||b - a||**2 Case of a scalar-valued array defined as a flux at primal faces. Thus, the weigth is the pyramid of apex the cell center and of basis the face. Each face quantity is normalized by the face surface. The computed quantities are synchronized in parallel. More... | |
Generic function pointer for computing a dot product. Parallel synchronization is performed.
[in] | a | first array to analyze |
[in] | b | second array to analyze |
Generic function pointer for computing a square norm of the difference between two arrays (defined at the same location and of the same dimension). The result may be normalized by the norm of the second array. Parallel synchronization is performed.
[in] | a | first array |
[in] | b | second array |
Generic function pointer for computing a square norm. Parallel synchronization is performed.
[in] | array | array to analyze |
Compute the dot product of two arrays using a weighted Euclidean dot product relying on CDO quantities. Case of non-interlaced scalar-valued arrays of stride = 2 defined as a potential at primal vertices. Thus, the weigth is the portion of dual cell (associated to a primal vertex) inside a primal cell. The computed quantity is synchronized in parallel.
[in] | a | first array to analyze |
[in] | b | second array to analyze |
Compute the dot product of two arrays using the classical Euclidean dot product (without weight). Case of a scalar-valued arrays defined at primal faces. The computed quantity is synchronized in parallel.
[in] | a | first array to analyze |
[in] | b | second array to analyze |
Compute the dot product of two arrays using a weighted Euclidean dot product relying on CDO quantities. Case of a scalar-valued arrays defined as a flux at primal faces. Thus, the weigth is the pyramid of apex the cell center and of basis the face. Each face quantity is normalized by the face surface. The computed quantity is synchronized in parallel.
[in] | a | first array to analyze |
[in] | b | second array to analyze |
Compute the dot product of two arrays using a weighted Euclidean dot product relying on CDO quantities. Case of a scalar-valued arrays defined as a potential at primal vertices. Thus, the weigth is the portion of dual cell (associated to a primal vertex) inside a primal cell. The computed quantity is synchronized in parallel.
[in] | a | first array to analyze |
[in] | b | second array to analyze |
Compute the dot product of two arrays using the classical Euclidean dot product (without weight). Case of a scalar-valued arrays defined at primal vertices. The computed quantity is synchronized in parallel.
[in] | a | first array to analyze |
[in] | b | second array to analyze |
void cs_cdo_blas_init_sharing | ( | const cs_cdo_quantities_t * | quant, |
const cs_cdo_connect_t * | connect | ||
) |
Set shared pointers to main domain members.
[in] | quant | additional mesh quantities struct. |
[in] | connect | pointer to a cs_cdo_connect_t struct. |
double cs_cdo_blas_square_norm_2pvsp | ( | const cs_real_t * | array | ) |
Compute the square norm of an array Case of a non-interlaced scalar-valued array of stride = 2 defined as a potential at primal vertices. Thus, the weigth is the portion of dual cell (associated to a primal vertex) inside a primal cell. The computed quantity is synchronized in parallel.
[in] | array | array to analyze |
Compute the square norm of an array using an Euclidean 2-norm. Case of a scalar-valued array defined at primal faces. The computed quantities are synchronized in parallel.
[in] | array | array to analyze |
Compute the square norm of an array Case of a scalar-valued array defined as a potential at primal cells. Thus, the weigth is the cell volume. The computed quantities are synchronized in parallel.
[in] | array | array to analyze |
Compute the norm ||b - a||**2 Case of two scalar-valued arrays a and b defined as a potential at primal cells. Thus, the weigth is the cell volume. The computed quantities are synchronized in parallel.
[in] | a | first array |
[in] | b | second array |
Compute the norm ||a - ref||**2 / || ref||**2 Case of two scalar-valued arrays a and ref defined as a potential at primal cells. Thus, the weigth is the cell volume. The computed quantities are synchronized in parallel. "ndiff" stands for "normalized difference".
[in] | a | array to analyze |
[in] | ref | array used for normalization and difference |
Compute the square norm of an array Case of a scalar-valued array defined as a flux at primal faces. Thus, the weigth is the pyramid of apex the cell center and of basis the face. Each face quantity is normalized by the face surface. The computed quantities are synchronized in parallel.
[in] | array | array to analyze |
Compute the norm ||b - a||**2 Case of a scalar-valued array defined as a flux at primal faces. Thus, the weigth is the pyramid of apex the cell center and of basis the face. Each face quantity is normalized by the face surface. The computed quantities are synchronized in parallel.
[in] | a | first array |
[in] | b | second array |
Compute the square norm of an array Case of a scalar-valued array defined as a potential at primal faces. Thus, the weigth is the pyramid of apex the cell center and of basis the face. The computed quantities are synchronized in parallel.
[in] | array | array to analyze |
Compute the square norm of an array Case of a vector-valued array defined as a potential at primal faces. Thus, the weigth is the pyramid of apex the cell center and of basis the face. The computed quantities are synchronized in parallel.
[in] | array | array to analyze (vector-valued) |
Compute the square norm of an array Case of a scalar-valued array defined as a potential at primal vertices. Thus, the weigth is the portion of dual cell inside each (primal cell). The computed quantities are synchronized in parallel.
[in] | array | array to analyze |
Compute the norm ||b - a||**2 Case of two scalar-valued arrays a and b defined as a potential at primal vertices. Thus, the weigth is the portion of dual cell in a primal cell. The computed quantities are synchronized in parallel.
[in] | a | first array |
[in] | b | second array |
double cs_cdo_blas_square_norm_vertex | ( | const cs_real_t * | array | ) |
Compute the square norm of an array using an Euclidean 2-norm. Case of a scalar-valued array defined at primal vertices. The computed quantities are synchronized in parallel.
[in] | array | array to analyze |