16#include <MD_Vector_mono.h>
25 Param p(
"MD_Vector_mono");
28 p.lire_avec_accolades(is);
45void flatten(
const ArrOfInt& blocs_items, ArrOfInt& items)
49 const int nblocs = blocs_items.
size_array() >> 1;
50 const int *bloc_itr = blocs_items.
addr();
52 for (
int bloc=0; bloc<nblocs; bloc++)
54 const int begin_bloc = (*(bloc_itr++));
55 const int end_bloc = (*(bloc_itr++));
56 size += end_bloc - begin_bloc;
60 bloc_itr = blocs_items.
addr();
61 for (
int bloc=0; bloc<nblocs; bloc++)
63 const int begin_bloc = (*(bloc_itr++));
64 const int end_bloc = (*(bloc_itr++));
65 for (
int i=begin_bloc; i<end_bloc; i++)
Class defining operators and methods for all reading operation in an input flow (file,...
Base class for distributed vectors parallel descriptors.
Generic class for all mono-block MD_Vectors (i.e. non compoosite).
const ArrOfInt & get_items_to_compute() const override
ArrOfInt items_to_compute_
ArrOfInt blocs_items_to_sum_
const ArrOfInt & get_items_to_sum() const override
const ArrOfInt & get_blocs_items_to_sum() const override
const ArrOfInt & get_blocs_items_to_compute() const override
ArrOfInt blocs_items_to_compute_
virtual Entree & readOn(Entree &)
Lecture d'un Objet_U sur un flot d'entree Methode a surcharger.
virtual Sortie & printOn(Sortie &) const
Ecriture de l'objet sur un flot de sortie Methode a surcharger.
Classe de base des flux de sortie.
_SIZE_ size_array() const
void resize(_SIZE_ new_size, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT)