MD_Vector_tools#

#include <MD_Vector_tools.h>
Brief description

How to reference this class#

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`MD\_Vector\_tools <class-md-vector-tools>`
[MD\_Vector\_tools](#class-md-vector-tools)

Detailed description#

List of Public Static Methods#

List of Private Static Methods#

Complete Member Function Documentation#

CleanMyStatics#

Definition
static void MD_Vector_tools::CleanMyStatics()
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`static void MD_Vector_tools::CleanMyStatics() <md-vector-tools-public-static-static-void-md-vector-tools-cleanmystatics>`
[static void MD_Vector_tools::CleanMyStatics()](#md-vector-tools-public-static-static-void-md-vector-tools-cleanmystatics)

compute_sequential_items_index#

Definition
void MD_Vector_tools::compute_sequential_items_index(const MD_Vector &, MD_Vector_renumber &, int line_size=1)
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void MD_Vector_tools::compute_sequential_items_index(const MD_Vector &, MD_Vector_renumber &, int line_size=1) <md-vector-tools-public-static-void-md-vector-tools-compute-sequential-items-index-const-md-vector-ref-md-vector-renumber-ref-int-line-size-equal-1>`
[void MD_Vector_tools::compute_sequential_items_index(const MD_Vector &, MD_Vector_renumber &, int line_size=1)](#md-vector-tools-public-static-void-md-vector-tools-compute-sequential-items-index-const-md-vector-ref-md-vector-renumber-ref-int-line-size-equal-1)

creer_md_vect_renum#

Definition
void MD_Vector_tools::creer_md_vect_renum(const IntVect &renum, MD_Vector &md_vect)
Brief description

cree un descripteur pour un sous - ensemble d’un vecteur.

Detailed description

renum fournit la structure et le descripteur du vecteur source (doit avoir line_size = = 1) renum doit contenir - 1 pour les items du vecteur source a ne pas conserver et une valeur positive ou nulle pour les items a conserver. La valeur renum[i] donne l’indice de cet item dans le nouveau tableau. Attention, si un item du vecteur source est recu d’un autre processeur et doit etre conserve, ce meme item doit aussi etre conserve sur le processeur qui envoie cet item.

References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void MD_Vector_tools::creer_md_vect_renum(const IntVect &renum, MD_Vector &md_vect) <md-vector-tools-public-static-void-md-vector-tools-creer-md-vect-renum-const-intvect-ref-renum-md-vector-ref-md-vect>`
[void MD_Vector_tools::creer_md_vect_renum(const IntVect &renum, MD_Vector &md_vect)](#md-vector-tools-public-static-void-md-vector-tools-creer-md-vect-renum-const-intvect-ref-renum-md-vector-ref-md-vect)

creer_md_vect_renum_auto#

Definition
void MD_Vector_tools::creer_md_vect_renum_auto(IntVect &flags_renum, MD_Vector &md_vect)
Brief description

Idem que creer_md_vect_renum() mais cree une numerotation par defaut.

Detailed description

Le tableau flags_renum doit contenir en entree une valeur POSITIVE OU NULLE pour les valeurs a conserver et une valeur negative pour les autres. En sortie, flags_renum contient l’indice de l’item dans le tableau reduit s’il est conserve, sinon la valeur d’origine non modifiee. Les items sont places dans l’ordre croissant de leur indice local sur dans le descripteur d’origine.

References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void MD_Vector_tools::creer_md_vect_renum_auto(IntVect &flags_renum, MD_Vector &md_vect) <md-vector-tools-public-static-void-md-vector-tools-creer-md-vect-renum-auto-intvect-ref-flags-renum-md-vector-ref-md-vect>`
[void MD_Vector_tools::creer_md_vect_renum_auto(IntVect &flags_renum, MD_Vector &md_vect)](#md-vector-tools-public-static-void-md-vector-tools-creer-md-vect-renum-auto-intvect-ref-flags-renum-md-vector-ref-md-vect)

creer_tableau_distribue#

Definition
void MD_Vector_tools::creer_tableau_distribue(const MD_Vector &, Array_base &, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT)
Brief description

transforme v en un tableau parallele ayant la structure md.

Detailed description

md doit est non nul ! Les dimension(i> = 1) du tableau v (si c’est un IntTab ou DoubleTab) sont conservees, les dimension(0) et dimension_tot(0) sont modifiees en fonction du nombre d’items specifies dans le MD_Vector . La dimension initiale du vecteur doit etre soit 0, soit md.get_nb_items_reels(), soit md.get_nb_items_tot(). Si besoin, la taille du tableau est modifiee et on initialise le tableau selon opt. ATTENTION, echange_espace_virtuel() n’est PAS appele. Les cases virtuelles ne sont pas initialisees…

References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void MD_Vector_tools::creer_tableau_distribue(const MD_Vector &, Array_base &, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT) <md-vector-tools-public-static-void-md-vector-tools-creer-tableau-distribue-const-md-vector-ref-array-base-ref-resize-options-opt-equal-resize-options-copy-init>`
[void MD_Vector_tools::creer_tableau_distribue(const MD_Vector &, Array_base &, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT)](#md-vector-tools-public-static-void-md-vector-tools-creer-tableau-distribue-const-md-vector-ref-array-base-ref-resize-options-opt-equal-resize-options-copy-init)

dump_vector_with_md#

Definition
void MD_Vector_tools::dump_vector_with_md(const DoubleVect &, Sortie &)
Brief description

dumps vector v with its parallel descriptor to os.

Detailed description

os must be a file type with one file per process (no shared file).

References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void MD_Vector_tools::dump_vector_with_md(const DoubleVect &, Sortie &) <md-vector-tools-public-static-void-md-vector-tools-dump-vector-with-md-const-doublevect-ref-sortie-ref>`
[void MD_Vector_tools::dump_vector_with_md(const DoubleVect &, Sortie &)](#md-vector-tools-public-static-void-md-vector-tools-dump-vector-with-md-const-doublevect-ref-sortie-ref)

echange_espace_virtuel#

Definition
void MD_Vector_tools::echange_espace_virtuel(DoubleVect &, Operations_echange opt=ECHANGE_EV)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void MD_Vector_tools::echange_espace_virtuel(DoubleVect &, Operations_echange opt=ECHANGE_EV) <md-vector-tools-public-static-void-md-vector-tools-echange-espace-virtuel-doublevect-ref-operations-echange-opt-equal-echange-ev>`
[void MD_Vector_tools::echange_espace_virtuel(DoubleVect &, Operations_echange opt=ECHANGE_EV)](#md-vector-tools-public-static-void-md-vector-tools-echange-espace-virtuel-doublevect-ref-operations-echange-opt-equal-echange-ev)

echange_espace_virtuel#

Definition
void MD_Vector_tools::echange_espace_virtuel(FloatVect &, Operations_echange opt=ECHANGE_EV)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void MD_Vector_tools::echange_espace_virtuel(FloatVect &, Operations_echange opt=ECHANGE_EV) <md-vector-tools-public-static-void-md-vector-tools-echange-espace-virtuel-floatvect-ref-operations-echange-opt-equal-echange-ev>`
[void MD_Vector_tools::echange_espace_virtuel(FloatVect &, Operations_echange opt=ECHANGE_EV)](#md-vector-tools-public-static-void-md-vector-tools-echange-espace-virtuel-floatvect-ref-operations-echange-opt-equal-echange-ev)

echange_espace_virtuel#

Definition
void MD_Vector_tools::echange_espace_virtuel(IntVect &, Operations_echange opt=ECHANGE_EV)
Brief description
Detailed description
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void MD_Vector_tools::echange_espace_virtuel(IntVect &, Operations_echange opt=ECHANGE_EV) <md-vector-tools-public-static-void-md-vector-tools-echange-espace-virtuel-intvect-ref-operations-echange-opt-equal-echange-ev>`
[void MD_Vector_tools::echange_espace_virtuel(IntVect &, Operations_echange opt=ECHANGE_EV)](#md-vector-tools-public-static-void-md-vector-tools-echange-espace-virtuel-intvect-ref-operations-echange-opt-equal-echange-ev)

echange_espace_virtuel#

Definition
void MD_Vector_tools::echange_espace_virtuel(TIDVect &v, Operations_echange opt=ECHANGE_EV)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void MD_Vector_tools::echange_espace_virtuel(TIDVect &v, Operations_echange opt=ECHANGE_EV) <md-vector-tools-public-static-void-md-vector-tools-echange-espace-virtuel-tidvect-ref-v-operations-echange-opt-equal-echange-ev>`
[void MD_Vector_tools::echange_espace_virtuel(TIDVect &v, Operations_echange opt=ECHANGE_EV)](#md-vector-tools-public-static-void-md-vector-tools-echange-espace-virtuel-tidvect-ref-v-operations-echange-opt-equal-echange-ev)

restore_vector_with_md#

Definition
void MD_Vector_tools::restore_vector_with_md(DoubleVect &, Entree &)
Brief description

restores a vector saved by dump_vector_with_md.

Detailed description

The code must run with the same number of processors. “v” will have a newly created copy of the descriptor (not equal to any other descriptor previously loaded). If “identical” descriptors are needed for several vectors, you might want to call set_md_vector() afterwards to attach another descriptor. See save_matrice_conditionnel()

References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void MD_Vector_tools::restore_vector_with_md(DoubleVect &, Entree &) <md-vector-tools-public-static-void-md-vector-tools-restore-vector-with-md-doublevect-ref-entree-ref>`
[void MD_Vector_tools::restore_vector_with_md(DoubleVect &, Entree &)](#md-vector-tools-public-static-void-md-vector-tools-restore-vector-with-md-doublevect-ref-entree-ref)

call_echange_espace_virtuel#

Definition
void MD_Vector_tools::call_echange_espace_virtuel(TRUSTVect< _TYPE_ > &v, MD_Vector_tools::Operations_echange opt)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void MD_Vector_tools::call_echange_espace_virtuel(TRUSTVect< _TYPE_ > &v, MD_Vector_tools::Operations_echange opt) <md-vector-tools-private-static-void-md-vector-tools-call-echange-espace-virtuel-trustvect-type-ref-v-md-vector-tools-operations-echange-opt>`
[void MD_Vector_tools::call_echange_espace_virtuel(TRUSTVect< _TYPE_ > &v, MD_Vector_tools::Operations_echange opt)](#md-vector-tools-private-static-void-md-vector-tools-call-echange-espace-virtuel-trustvect-type-ref-v-md-vector-tools-operations-echange-opt)

echange_espace_virtuel1_#

Definition
void MD_Vector_tools::echange_espace_virtuel1_(const MD_Vector &md, TRUSTVect< _TYPE_ > &v, MD_Vector_tools::Operations_echange opt)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void MD_Vector_tools::echange_espace_virtuel1_(const MD_Vector &md, TRUSTVect< _TYPE_ > &v, MD_Vector_tools::Operations_echange opt) <md-vector-tools-private-static-void-md-vector-tools-echange-espace-virtuel1-underscore-const-md-vector-ref-md-trustvect-type-ref-v-md-vector-tools-operations-echange-opt>`
[void MD_Vector_tools::echange_espace_virtuel1_(const MD_Vector &md, TRUSTVect< _TYPE_ > &v, MD_Vector_tools::Operations_echange opt)](#md-vector-tools-private-static-void-md-vector-tools-echange-espace-virtuel1-underscore-const-md-vector-ref-md-trustvect-type-ref-v-md-vector-tools-operations-echange-opt)

echange_espace_virtuel_#

Definition
void MD_Vector_tools::echange_espace_virtuel_(const MD_Vector &md, TRUSTVect< _TYPE_ > &v, const Echange_EV_Options &opt)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void MD_Vector_tools::echange_espace_virtuel_(const MD_Vector &md, TRUSTVect< _TYPE_ > &v, const Echange_EV_Options &opt) <md-vector-tools-private-static-void-md-vector-tools-echange-espace-virtuel-underscore-const-md-vector-ref-md-trustvect-type-ref-v-const-echange-ev-options-ref-opt>`
[void MD_Vector_tools::echange_espace_virtuel_(const MD_Vector &md, TRUSTVect< _TYPE_ > &v, const Echange_EV_Options &opt)](#md-vector-tools-private-static-void-md-vector-tools-echange-espace-virtuel-underscore-const-md-vector-ref-md-trustvect-type-ref-v-const-echange-ev-options-ref-opt)

Attributes Documentation#

comm (private)
Schema_Comm_Vecteurs MD_Vector_tools::comm
last_isdouble (private)
int MD_Vector_tools::last_isdouble
last_linesize (private)
int MD_Vector_tools::last_linesize = 0
last_md (private)
MD_Vector MD_Vector_tools::last_md
last_opt (private)
Echange_EV_Options MD_Vector_tools::last_opt

Enums#

MD_Vector_tools::Operations_echange#

Location: trust-code/src/Kernel/Math/MD_Vector_tools.h:42

How to cite in this doc: Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`MD\_Vector\_tools::Operations\_echange <enum-none-md-vector-tools-operations-echange>`
[MD\_Vector\_tools::Operations\_echange](#enum-none-md-vector-tools-operations-echange)
  • ECHANGE_EV

  • EV_SOMME

  • EV_SOMME_ECHANGE

  • EV_MAX

  • EV_MINCOL1