| 
    libMesh
    
   | 
 
Defines an abstract dense vector base class for use in Finite Element-type computations. More...
#include <dof_map.h>
Public Member Functions | |
| DenseVectorBase ()=default | |
| Constructor.  More... | |
| DenseVectorBase (DenseVectorBase &&)=default | |
| The 5 special functions can be defaulted for this class, as it does not manage any memory itself.  More... | |
| DenseVectorBase (const DenseVectorBase &)=default | |
| DenseVectorBase & | operator= (const DenseVectorBase &)=default | 
| DenseVectorBase & | operator= (DenseVectorBase &&)=default | 
| virtual | ~DenseVectorBase ()=default | 
| virtual void | zero ()=0 | 
| Set every element in the vector to 0.  More... | |
| virtual T | el (const unsigned int i) const =0 | 
| virtual T & | el (const unsigned int i)=0 | 
| virtual unsigned int | size () const =0 | 
| virtual bool | empty () const | 
| void | print (std::ostream &os) const | 
Pretty-print the vector to stdout.  More... | |
| void | print_scientific (std::ostream &os, unsigned precision=8) const | 
| Prints the entries of the vector with additional decimal places in scientific notation.  More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const DenseVectorBase< T > &v) | 
| Same as above, but allows you to print using the usual stream syntax.  More... | |
Defines an abstract dense vector base class for use in Finite Element-type computations.
Specialized dense vectors, for example DenseSubVectors, can be derived from this class.
      
  | 
  default | 
Constructor.
      
  | 
  default | 
The 5 special functions can be defaulted for this class, as it does not manage any memory itself.
      
  | 
  default | 
      
  | 
  virtualdefault | 
      
  | 
  pure virtual | 
(i) element of the vector. Implemented in libMesh::DenseVector< T >, libMesh::DenseVector< Number >, libMesh::DenseVector< Output >, libMesh::DenseSubVector< T >, and libMesh::DenseSubVector< Number >.
Referenced by libMesh::DenseMatrixBase< T >::condense(), and libMesh::DofMap::extract_local_vector().
      
  | 
  pure virtual | 
(i) element of the vector as a writable reference. Implemented in libMesh::DenseVector< T >, libMesh::DenseVector< Number >, libMesh::DenseVector< Output >, libMesh::DenseSubVector< T >, and libMesh::DenseSubVector< Number >.
      
  | 
  inlinevirtual | 
true iff size() is 0. Reimplemented in libMesh::DenseVector< T >, libMesh::DenseVector< Number >, libMesh::DenseVector< Output >, libMesh::DenseSubVector< T >, and libMesh::DenseSubVector< Number >.
Definition at line 84 of file dense_vector_base.h.
References libMesh::DenseVectorBase< T >::size().
      
  | 
  default | 
      
  | 
  default | 
| void libMesh::DenseVectorBase< T >::print | ( | std::ostream & | os | ) | const | 
Pretty-print the vector to stdout. 
Definition at line 51 of file dense_vector_base.C.
| void libMesh::DenseVectorBase< T >::print_scientific | ( | std::ostream & | os, | 
| unsigned | precision = 8  | 
        ||
| ) | const | 
Prints the entries of the vector with additional decimal places in scientific notation.
Definition at line 31 of file dense_vector_base.C.
      
  | 
  pure virtual | 
Implemented in libMesh::DenseVector< T >, libMesh::DenseVector< Number >, libMesh::DenseVector< Output >, libMesh::DenseSubVector< T >, and libMesh::DenseSubVector< Number >.
Referenced by libMesh::DenseMatrixBase< T >::condense(), libMesh::DenseVectorBase< T >::empty(), and libMesh::DofMap::extract_local_vector().
      
  | 
  pure virtual | 
Set every element in the vector to 0.
Needs to be pure virtual since the storage method may be different in derived classes.
Implemented in libMesh::DenseVector< T >, libMesh::DenseVector< Number >, libMesh::DenseVector< Output >, libMesh::DenseSubVector< T >, and libMesh::DenseSubVector< Number >.
Referenced by libMesh::DofMap::extract_local_vector().
      
  | 
  friend | 
Same as above, but allows you to print using the usual stream syntax.
Definition at line 95 of file dense_vector_base.h.
 1.8.16