Matrix_tools#
#include <Matrix_tools.h>
How to cite this class in this doc#
:ref:`Matrix\_tools <class-matrix-tools>`
[Matrix\_tools](#class-matrix-tools)
Detailed description#
List of Public Static Methods#
Complete Member Function Documentation#
add_scaled_matrices
void Matrix_tools::add_scaled_matrices(const Matrice &A, const double alpha, const Matrice &B, const double beta, Matrice &C)
References
How to cite in this doc:
:ref:`void Matrix_tools::add_scaled_matrices(const Matrice &A, const double alpha, const Matrice &B, const double beta, Matrice &C) <public-static-void-matrix-tools-add-scaled-matrices-const-matrice-ref-a-const-double-alpha-const-matrice-ref-b-const-double-beta-matrice-ref-c>`
[void Matrix_tools::add_scaled_matrices(const Matrice &A, const double alpha, const Matrice &B, const double beta, Matrice &C)](#public-static-void-matrix-tools-add-scaled-matrices-const-matrice-ref-a-const-double-alpha-const-matrice-ref-b-const-double-beta-matrice-ref-c)
add_symmetric_scaled_matrices
void Matrix_tools::add_symmetric_scaled_matrices(const Matrice &A, const double alpha, const Matrice &B, const double beta, Matrice &C)
How to cite in this doc:
:ref:`void Matrix_tools::add_symmetric_scaled_matrices(const Matrice &A, const double alpha, const Matrice &B, const double beta, Matrice &C) <public-static-void-matrix-tools-add-symmetric-scaled-matrices-const-matrice-ref-a-const-double-alpha-const-matrice-ref-b-const-double-beta-matrice-ref-c>`
[void Matrix_tools::add_symmetric_scaled_matrices(const Matrice &A, const double alpha, const Matrice &B, const double beta, Matrice &C)](#public-static-void-matrix-tools-add-symmetric-scaled-matrices-const-matrice-ref-a-const-double-alpha-const-matrice-ref-b-const-double-beta-matrice-ref-c)
allocate_for_scaled_addition
void Matrix_tools::allocate_for_scaled_addition(const Matrice &A, const Matrice &B, Matrice &C)
References
How to cite in this doc:
:ref:`void Matrix_tools::allocate_for_scaled_addition(const Matrice &A, const Matrice &B, Matrice &C) <public-static-void-matrix-tools-allocate-for-scaled-addition-const-matrice-ref-a-const-matrice-ref-b-matrice-ref-c>`
[void Matrix_tools::allocate_for_scaled_addition(const Matrice &A, const Matrice &B, Matrice &C)](#public-static-void-matrix-tools-allocate-for-scaled-addition-const-matrice-ref-a-const-matrice-ref-b-matrice-ref-c)
allocate_for_symmetric_scaled_addition
void Matrix_tools::allocate_for_symmetric_scaled_addition(const Matrice &A, const Matrice &B, Matrice &C)
References
How to cite in this doc:
:ref:`void Matrix_tools::allocate_for_symmetric_scaled_addition(const Matrice &A, const Matrice &B, Matrice &C) <public-static-void-matrix-tools-allocate-for-symmetric-scaled-addition-const-matrice-ref-a-const-matrice-ref-b-matrice-ref-c>`
[void Matrix_tools::allocate_for_symmetric_scaled_addition(const Matrice &A, const Matrice &B, Matrice &C)](#public-static-void-matrix-tools-allocate-for-symmetric-scaled-addition-const-matrice-ref-a-const-matrice-ref-b-matrice-ref-c)
allocate_from_stencil
void Matrix_tools::allocate_from_stencil(const int nb_lines, const int nb_columns, const IntTab &stencil, Matrice &matrix, const bool &attach_stencil_to_matrix=false)
References
Referenced By
How to cite in this doc:
:ref:`void Matrix_tools::allocate_from_stencil(const int nb_lines, const int nb_columns, const IntTab &stencil, Matrice &matrix, const bool &attach_stencil_to_matrix=false) <public-static-void-matrix-tools-allocate-from-stencil-const-int-nb-lines-const-int-nb-columns-const-inttab-ref-stencil-matrice-ref-matrix-const-bool-ref-attach-stencil-to-matrix-equal-false>`
[void Matrix_tools::allocate_from_stencil(const int nb_lines, const int nb_columns, const IntTab &stencil, Matrice &matrix, const bool &attach_stencil_to_matrix=false)](#public-static-void-matrix-tools-allocate-from-stencil-const-int-nb-lines-const-int-nb-columns-const-inttab-ref-stencil-matrice-ref-matrix-const-bool-ref-attach-stencil-to-matrix-equal-false)
allocate_morse_matrix
void Matrix_tools::allocate_morse_matrix(const int nb_lines, const int nb_columns, const IntTab &stencil, Matrice_Morse &matrix, const bool &attach_stencil_to_matrix=false)
References
Referenced By
Diffusion_supplementaire_echelle_temp_turb_PolyMAC_P0::dimensionner_blocs
Source_Diffusion_supplementaire_echelle_temp_turb::dimensionner_blocs
Source_Production_echelle_temp_taux_diss_turb::dimensionner_blocs
Perte_Charge_Singuliere_PolyMAC_P0P1NC_Face::dimensionner_blocs
Terme_Source_Decroissance_Radioactive_Elem_PolyMAC::dimensionner_blocs
How to cite in this doc:
:ref:`void Matrix_tools::allocate_morse_matrix(const int nb_lines, const int nb_columns, const IntTab &stencil, Matrice_Morse &matrix, const bool &attach_stencil_to_matrix=false) <public-static-void-matrix-tools-allocate-morse-matrix-const-int-nb-lines-const-int-nb-columns-const-inttab-ref-stencil-matrice-morse-ref-matrix-const-bool-ref-attach-stencil-to-matrix-equal-false>`
[void Matrix_tools::allocate_morse_matrix(const int nb_lines, const int nb_columns, const IntTab &stencil, Matrice_Morse &matrix, const bool &attach_stencil_to_matrix=false)](#public-static-void-matrix-tools-allocate-morse-matrix-const-int-nb-lines-const-int-nb-columns-const-inttab-ref-stencil-matrice-morse-ref-matrix-const-bool-ref-attach-stencil-to-matrix-equal-false)
allocate_symmetric_morse_matrix
void Matrix_tools::allocate_symmetric_morse_matrix(const int order, const IntTab &stencil, Matrice_Morse_Sym &matrix)
References
How to cite in this doc:
:ref:`void Matrix_tools::allocate_symmetric_morse_matrix(const int order, const IntTab &stencil, Matrice_Morse_Sym &matrix) <public-static-void-matrix-tools-allocate-symmetric-morse-matrix-const-int-order-const-inttab-ref-stencil-matrice-morse-sym-ref-matrix>`
[void Matrix_tools::allocate_symmetric_morse_matrix(const int order, const IntTab &stencil, Matrice_Morse_Sym &matrix)](#public-static-void-matrix-tools-allocate-symmetric-morse-matrix-const-int-order-const-inttab-ref-stencil-matrice-morse-sym-ref-matrix)
build_morse_matrix
void Matrix_tools::build_morse_matrix(const int nb_lines, const int nb_columns, const IntTab &stencil, const ArrOfDouble &coefficients, Matrice_Morse &matrix)
References
Referenced By
How to cite in this doc:
:ref:`void Matrix_tools::build_morse_matrix(const int nb_lines, const int nb_columns, const IntTab &stencil, const ArrOfDouble &coefficients, Matrice_Morse &matrix) <public-static-void-matrix-tools-build-morse-matrix-const-int-nb-lines-const-int-nb-columns-const-inttab-ref-stencil-const-arrofdouble-ref-coefficients-matrice-morse-ref-matrix>`
[void Matrix_tools::build_morse_matrix(const int nb_lines, const int nb_columns, const IntTab &stencil, const ArrOfDouble &coefficients, Matrice_Morse &matrix)](#public-static-void-matrix-tools-build-morse-matrix-const-int-nb-lines-const-int-nb-columns-const-inttab-ref-stencil-const-arrofdouble-ref-coefficients-matrice-morse-ref-matrix)
build_symmetric_morse_matrix
void Matrix_tools::build_symmetric_morse_matrix(const int order, const IntTab &stencil, const ArrOfDouble &coefficients, Matrice_Morse_Sym &matrix)
References
Referenced By
How to cite in this doc:
:ref:`void Matrix_tools::build_symmetric_morse_matrix(const int order, const IntTab &stencil, const ArrOfDouble &coefficients, Matrice_Morse_Sym &matrix) <public-static-void-matrix-tools-build-symmetric-morse-matrix-const-int-order-const-inttab-ref-stencil-const-arrofdouble-ref-coefficients-matrice-morse-sym-ref-matrix>`
[void Matrix_tools::build_symmetric_morse_matrix(const int order, const IntTab &stencil, const ArrOfDouble &coefficients, Matrice_Morse_Sym &matrix)](#public-static-void-matrix-tools-build-symmetric-morse-matrix-const-int-order-const-inttab-ref-stencil-const-arrofdouble-ref-coefficients-matrice-morse-sym-ref-matrix)
convert_to_morse_matrix
void Matrix_tools::convert_to_morse_matrix(const Matrice_Base &in, Matrice_Morse &out)
References
Referenced By
How to cite in this doc:
:ref:`void Matrix_tools::convert_to_morse_matrix(const Matrice_Base &in, Matrice_Morse &out) <public-static-void-matrix-tools-convert-to-morse-matrix-const-matrice-base-ref-in-matrice-morse-ref-out>`
[void Matrix_tools::convert_to_morse_matrix(const Matrice_Base &in, Matrice_Morse &out)](#public-static-void-matrix-tools-convert-to-morse-matrix-const-matrice-base-ref-in-matrice-morse-ref-out)
convert_to_morse_matrix_with_ptrs
void Matrix_tools::convert_to_morse_matrix_with_ptrs(const Matrice_Base &in, Matrice_Morse &out, std::vector< const double * > &coeffs)
References
Referenced By
How to cite in this doc:
:ref:`void Matrix_tools::convert_to_morse_matrix_with_ptrs(const Matrice_Base &in, Matrice_Morse &out, std::vector< const double * > &coeffs) <public-static-void-matrix-tools-convert-to-morse-matrix-with-ptrs-const-matrice-base-ref-in-matrice-morse-ref-out-std-vector-const-double-ptr-ref-coeffs>`
[void Matrix_tools::convert_to_morse_matrix_with_ptrs(const Matrice_Base &in, Matrice_Morse &out, std::vector< const double * > &coeffs)](#public-static-void-matrix-tools-convert-to-morse-matrix-with-ptrs-const-matrice-base-ref-in-matrice-morse-ref-out-std-vector-const-double-ptr-ref-coeffs)
convert_to_symmetric_morse_matrix
void Matrix_tools::convert_to_symmetric_morse_matrix(const Matrice_Base &in, Matrice_Morse_Sym &out)
References
Referenced By
How to cite in this doc:
:ref:`void Matrix_tools::convert_to_symmetric_morse_matrix(const Matrice_Base &in, Matrice_Morse_Sym &out) <public-static-void-matrix-tools-convert-to-symmetric-morse-matrix-const-matrice-base-ref-in-matrice-morse-sym-ref-out>`
[void Matrix_tools::convert_to_symmetric_morse_matrix(const Matrice_Base &in, Matrice_Morse_Sym &out)](#public-static-void-matrix-tools-convert-to-symmetric-morse-matrix-const-matrice-base-ref-in-matrice-morse-sym-ref-out)
extend_matrix
void Matrix_tools::extend_matrix(Matrice_Morse &mat, int nl, int nc)
References
How to cite in this doc:
:ref:`void Matrix_tools::extend_matrix(Matrice_Morse &mat, int nl, int nc) <public-static-void-matrix-tools-extend-matrix-matrice-morse-ref-mat-int-nl-int-nc>`
[void Matrix_tools::extend_matrix(Matrice_Morse &mat, int nl, int nc)](#public-static-void-matrix-tools-extend-matrix-matrice-morse-ref-mat-int-nl-int-nc)
extend_matrix_stencil
void Matrix_tools::extend_matrix_stencil(const IntTab &stencil, Matrice &matrix, const bool &attach_stencil_to_matrix=false)
References
How to cite in this doc:
:ref:`void Matrix_tools::extend_matrix_stencil(const IntTab &stencil, Matrice &matrix, const bool &attach_stencil_to_matrix=false) <public-static-void-matrix-tools-extend-matrix-stencil-const-inttab-ref-stencil-matrice-ref-matrix-const-bool-ref-attach-stencil-to-matrix-equal-false>`
[void Matrix_tools::extend_matrix_stencil(const IntTab &stencil, Matrice &matrix, const bool &attach_stencil_to_matrix=false)](#public-static-void-matrix-tools-extend-matrix-stencil-const-inttab-ref-stencil-matrice-ref-matrix-const-bool-ref-attach-stencil-to-matrix-equal-false)
fill_csr_arrays
template void Matrix_tools::fill_csr_arrays(const _SIZE_ nb_lines, const _SIZE_ nb_columns, const TRUSTTab< _SIZE_, _SIZE_ > &stencil, TRUSTVect< _SIZE_, _SIZE_ > &tab1, TRUSTVect< _SIZE_, _SIZE_ > &tab2)
References
Referenced By
How to cite in this doc:
:ref:`template void Matrix_tools::fill_csr_arrays(const _SIZE_ nb_lines, const _SIZE_ nb_columns, const TRUSTTab< _SIZE_, _SIZE_ > &stencil, TRUSTVect< _SIZE_, _SIZE_ > &tab1, TRUSTVect< _SIZE_, _SIZE_ > &tab2) <public-static-template-void-matrix-tools-fill-csr-arrays-const-size-nb-lines-const-size-nb-columns-const-trusttab-size-size-ref-stencil-trustvect-size-size-ref-tab1-trustvect-size-size-ref-tab2>`
[template void Matrix_tools::fill_csr_arrays(const _SIZE_ nb_lines, const _SIZE_ nb_columns, const TRUSTTab< _SIZE_, _SIZE_ > &stencil, TRUSTVect< _SIZE_, _SIZE_ > &tab1, TRUSTVect< _SIZE_, _SIZE_ > &tab2)](#public-static-template-void-matrix-tools-fill-csr-arrays-const-size-nb-lines-const-size-nb-columns-const-trusttab-size-size-ref-stencil-trustvect-size-size-ref-tab1-trustvect-size-size-ref-tab2)
is_diagonal_stencil
bool Matrix_tools::is_diagonal_stencil(const int nb_lines, const int nb_columns, const IntTab &stencil)
References
Referenced By
How to cite in this doc:
:ref:`bool Matrix_tools::is_diagonal_stencil(const int nb_lines, const int nb_columns, const IntTab &stencil) <public-static-bool-matrix-tools-is-diagonal-stencil-const-int-nb-lines-const-int-nb-columns-const-inttab-ref-stencil>`
[bool Matrix_tools::is_diagonal_stencil(const int nb_lines, const int nb_columns, const IntTab &stencil)](#public-static-bool-matrix-tools-is-diagonal-stencil-const-int-nb-lines-const-int-nb-columns-const-inttab-ref-stencil)
is_normalized_stencil
bool Matrix_tools::is_normalized_stencil(const IntTab_T< _SIZE_ > &stencil)
References
How to cite in this doc:
:ref:`bool Matrix_tools::is_normalized_stencil(const IntTab_T< _SIZE_ > &stencil) <public-static-bool-matrix-tools-is-normalized-stencil-const-inttab-t-size-ref-stencil>`
[bool Matrix_tools::is_normalized_stencil(const IntTab_T< _SIZE_ > &stencil)](#public-static-bool-matrix-tools-is-normalized-stencil-const-inttab-t-size-ref-stencil)
is_normalized_symmetric_stencil
bool Matrix_tools::is_normalized_symmetric_stencil(const IntTab &stencil)
Referenced By
How to cite in this doc:
:ref:`bool Matrix_tools::is_normalized_symmetric_stencil(const IntTab &stencil) <public-static-bool-matrix-tools-is-normalized-symmetric-stencil-const-inttab-ref-stencil>`
[bool Matrix_tools::is_normalized_symmetric_stencil(const IntTab &stencil)](#public-static-bool-matrix-tools-is-normalized-symmetric-stencil-const-inttab-ref-stencil)
is_null_stencil
bool Matrix_tools::is_null_stencil(const IntTab &stencil)
References
Referenced By
How to cite in this doc:
:ref:`bool Matrix_tools::is_null_stencil(const IntTab &stencil) <public-static-bool-matrix-tools-is-null-stencil-const-inttab-ref-stencil>`
[bool Matrix_tools::is_null_stencil(const IntTab &stencil)](#public-static-bool-matrix-tools-is-null-stencil-const-inttab-ref-stencil)
matdiag_mult_matmorse
void Matrix_tools::matdiag_mult_matmorse(const DoubleTab &diag, Matrice_Morse &mat, const bool &inverse)
References
How to cite in this doc:
:ref:`void Matrix_tools::matdiag_mult_matmorse(const DoubleTab &diag, Matrice_Morse &mat, const bool &inverse) <public-static-void-matrix-tools-matdiag-mult-matmorse-const-doubletab-ref-diag-matrice-morse-ref-mat-const-bool-ref-inverse>`
[void Matrix_tools::matdiag_mult_matmorse(const DoubleTab &diag, Matrice_Morse &mat, const bool &inverse)](#public-static-void-matrix-tools-matdiag-mult-matmorse-const-doubletab-ref-diag-matrice-morse-ref-mat-const-bool-ref-inverse)
matmorse_mult_matdiag
void Matrix_tools::matmorse_mult_matdiag(const DoubleTab &diag, Matrice_Morse &mat, const bool &inverse)
References
How to cite in this doc:
:ref:`void Matrix_tools::matmorse_mult_matdiag(const DoubleTab &diag, Matrice_Morse &mat, const bool &inverse) <public-static-void-matrix-tools-matmorse-mult-matdiag-const-doubletab-ref-diag-matrice-morse-ref-mat-const-bool-ref-inverse>`
[void Matrix_tools::matmorse_mult_matdiag(const DoubleTab &diag, Matrice_Morse &mat, const bool &inverse)](#public-static-void-matrix-tools-matmorse-mult-matdiag-const-doubletab-ref-diag-matrice-morse-ref-mat-const-bool-ref-inverse)
matmorse_mult_uniform_matdiag
void Matrix_tools::matmorse_mult_uniform_matdiag(const double diag, Matrice_Morse &mat, const bool &inverse)
References
How to cite in this doc:
:ref:`void Matrix_tools::matmorse_mult_uniform_matdiag(const double diag, Matrice_Morse &mat, const bool &inverse) <public-static-void-matrix-tools-matmorse-mult-uniform-matdiag-const-double-diag-matrice-morse-ref-mat-const-bool-ref-inverse>`
[void Matrix_tools::matmorse_mult_uniform_matdiag(const double diag, Matrice_Morse &mat, const bool &inverse)](#public-static-void-matrix-tools-matmorse-mult-uniform-matdiag-const-double-diag-matrice-morse-ref-mat-const-bool-ref-inverse)
uniform_matdiag_mult_matmorse
void Matrix_tools::uniform_matdiag_mult_matmorse(const double diag, Matrice_Morse &mat, const bool &inverse)
References
Referenced By
How to cite in this doc:
:ref:`void Matrix_tools::uniform_matdiag_mult_matmorse(const double diag, Matrice_Morse &mat, const bool &inverse) <public-static-void-matrix-tools-uniform-matdiag-mult-matmorse-const-double-diag-matrice-morse-ref-mat-const-bool-ref-inverse>`
[void Matrix_tools::uniform_matdiag_mult_matmorse(const double diag, Matrice_Morse &mat, const bool &inverse)](#public-static-void-matrix-tools-uniform-matdiag-mult-matmorse-const-double-diag-matrice-morse-ref-mat-const-bool-ref-inverse)