| 
    GEOS
    
   | 
 
Concrete representation of a block vector. More...
#include <BlockVector.hpp>

Public Types | |
| using | Base = BlockVectorView< VECTOR > | 
| Alias for base type.  | |
  Public Types inherited from geos::BlockVectorView< VECTOR > | |
| using | Vector = VECTOR | 
| Alias for sub-vector type.  | |
Public Member Functions | |
| BlockVector (localIndex const nBlocks) | |
Create a vector of nBlocks blocks.  More... | |
| BlockVector () | |
Create a vector of nBlocks blocks.  | |
| BlockVector (BlockVector const &rhs) | |
| Copy constructor that performs a deep copy of each sub-vector.  More... | |
| BlockVector (BlockVector &&rhs) | |
| Move constructor.  More... | |
| BlockVector (BlockVectorView< VECTOR > const &rhs) | |
| Conversion constructor from a compatible view with a deep copy of each sub-vector.  More... | |
| BlockVector & | operator= (BlockVector const &x) | 
| Copy assignment.  More... | |
| BlockVector & | operator= (BlockVector &&x) noexcept | 
| Move assignment.  More... | |
| virtual | ~BlockVector () override=default | 
| Destructor.  | |
| void | resize (localIndex const nBlocks) | 
| Resize to a different number of blocks.  More... | |
  Public Member Functions inherited from geos::BlockVectorView< VECTOR > | |
| BlockVectorView & | operator= (BlockVectorView const &rhs)=delete | 
| Deleted copy assignment.  More... | |
| BlockVectorView & | operator= (BlockVectorView &&rhs) noexcept=delete | 
| Deleted move assignment.  More... | |
| virtual | ~BlockVectorView ()=default | 
| Destructor.  | |
| void | copy (BlockVectorView const &src) | 
Update vector y as y = x.  More... | |
| void | scale (real64 const factor) | 
Scale the block vector with factor.  More... | |
| void | zero () | 
| Set the vector to zero.  | |
| void | rand (unsigned const seed) | 
| Set vector elements to random entries.  More... | |
| real64 | dot (BlockVectorView const &x) const | 
| Dot product.  More... | |
| real64 | norm2 () const | 
| 2-norm of the block vector.  More... | |
| real64 | normInf () const | 
| Inf-norm of the block vector.  More... | |
| void | axpy (real64 const alpha, BlockVectorView const &x) | 
Update vector y as y = alpha*x + y.  More... | |
| void | axpby (real64 const alpha, BlockVectorView const &x, real64 const beta) | 
Update vector y as y = alpha*x + beta*y.  More... | |
| localIndex | blockSize () const | 
| Get block size.  More... | |
| globalIndex | globalSize () const | 
| Get global size.  More... | |
| localIndex | localSize () const | 
| Get local size.  More... | |
| void | print (std::ostream &os=std::cout) const | 
| Print the block vector.  More... | |
| VECTOR const & | block (localIndex const blockIndex) const | 
Get a reference to the vector corresponding to block blockRowIndex.  More... | |
| VECTOR & | block (localIndex const blockIndex) | 
Get a reference to the vector corresponding to block blockRowIndex.  More... | |
| VECTOR const & | operator() (localIndex const blockIndex) const | 
Get a reference to the vector corresponding to block blockRowIndex.  More... | |
| VECTOR & | operator() (localIndex const blockIndex) | 
Get a reference to the vector corresponding to block blockRowIndex.  More... | |
Additional Inherited Members | |
  Protected Member Functions inherited from geos::BlockVectorView< VECTOR > | |
| void | resize (localIndex const size) | 
| Resize to a new number of blocks.  More... | |
| void | setPointer (localIndex i, VECTOR *vec) | 
| Set pointer to a vector.  More... | |
| BlockVectorView (localIndex const nBlocks) | |
Create a vector of nBlocks blocks.  More... | |
| BlockVectorView (BlockVectorView const &)=default | |
| Copy constructor.  | |
| BlockVectorView (BlockVectorView &&)=default | |
| Move constructor.  | |
Concrete representation of a block vector.
| VECTOR | type of sub-vectors | 
This extends BlockVectorView class by providing storage for sub-block vectors. The VECTOR type needs to be default-constructible. 
Definition at line 36 of file BlockVector.hpp.
      
  | 
  inlineexplicit | 
Create a vector of nBlocks blocks. 
| nBlocks | Number of blocks | 
Definition at line 47 of file BlockVector.hpp.
      
  | 
  inline | 
Copy constructor that performs a deep copy of each sub-vector.
| rhs | the block vector to copy | 
Definition at line 65 of file BlockVector.hpp.
      
  | 
  inline | 
Move constructor.
| rhs | the block vector to move from | 
Definition at line 76 of file BlockVector.hpp.
      
  | 
  inlineexplicit | 
Conversion constructor from a compatible view with a deep copy of each sub-vector.
| rhs | the block vector view to copy from | 
Definition at line 88 of file BlockVector.hpp.
      
  | 
  inlinenoexcept | 
Move assignment.
| x | the vector to move from | 
this Definition at line 115 of file BlockVector.hpp.
      
  | 
  inline | 
Copy assignment.
| x | the vector to copy | 
this Definition at line 103 of file BlockVector.hpp.
      
  | 
  inline | 
Resize to a different number of blocks.
| nBlocks | the new number of blocks | 
Definition at line 134 of file BlockVector.hpp.