16#ifndef dealii_la_parallel_block_vector_h
17#define dealii_la_parallel_block_vector_h
38# ifdef DEAL_II_WITH_PETSC
48# ifdef DEAL_II_WITH_TRILINOS
83 template <
typename Number>
161 template <
typename OtherNumber>
175 const std::vector<IndexSet> &ghost_indices,
212 template <
class Number2>
222#ifdef DEAL_II_WITH_PETSC
234#ifdef DEAL_II_WITH_TRILINOS
263 const bool omit_zeroing_entries =
false);
286 const bool omit_zeroing_entries =
false);
302 template <
typename Number2>
305 const bool omit_zeroing_entries =
false);
379 template <
typename OtherNumber>
381 add(
const std::vector<size_type> & indices,
382 const ::Vector<OtherNumber> &
values);
444 const bool omit_zeroing_entries =
false)
override;
481 std::shared_ptr<const Utilities::MPI::CommunicationPatternBase>
482 communication_pattern = {})
override;
506 template <
typename FullMatrixType>
528 template <
typename FullMatrixType>
543 template <
typename FullMatrixType>
546 const FullMatrixType &
matrix,
547 const Number s = Number(0.),
548 const Number
b = Number(1.))
const;
554 add(
const Number a)
override;
576 add(
const std::vector<size_type> &indices,
577 const std::vector<Number> &
values);
680 const unsigned int precision = 3,
681 const bool scientific =
true,
682 const bool across =
true)
const override;
724template <
typename Number>
737template <
typename Number>
746# include <deal.II/lac/la_parallel_block_vector.templates.h>
void swap(LinearAlgebra::distributed::BlockVector< Number > &u, LinearAlgebra::distributed::BlockVector< Number > &v)
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_DEPRECATED_EARLY
#define DEAL_II_NAMESPACE_CLOSE
#define DeclException0(Exception0)
::internal::BlockVectorIterators::Iterator< BlockVectorBase, false > iterator
const value_type * const_pointer
typename BlockType::const_reference const_reference
types::global_dof_index size_type
typename BlockType::value_type value_type
::internal::BlockVectorIterators::Iterator< BlockVectorBase, true > const_iterator
typename BlockType::reference reference
typename BlockType::real_type real_type
Vector< Number > BlockType
typename BaseClass::value_type value_type
bool has_ghost_elements() const
virtual real_type linfty_norm() const override
void swap(BlockVector< Number > &v)
BlockVector(const size_type num_blocks=0, const size_type block_size=0)
virtual real_type l1_norm() const override
static ::ExceptionBase & ExcVectorTypeNotCompatible()
virtual void add(const Number a, const VectorSpaceVector< Number > &V, const Number b, const VectorSpaceVector< Number > &W) override
virtual void add(const std::vector< size_type > &indices, const std::vector< Number > &values)
virtual void reinit(const VectorSpaceVector< Number > &V, const bool omit_zeroing_entries=false) override
virtual ::IndexSet locally_owned_elements() const override
static constexpr unsigned int communication_block_size
real_type norm_sqr() const
virtual ~BlockVector() override=default
virtual void sadd(const Number s, const Number a, const VectorSpaceVector< Number > &V) override
virtual BlockVector< Number > & operator*=(const Number factor) override
virtual BlockVector< Number > & operator/=(const Number factor) override
BlockVector(const std::vector< size_type > &block_sizes)
virtual BlockVector< Number > & operator-=(const VectorSpaceVector< Number > &V) override
static ::ExceptionBase & ExcIteratorRangeDoesNotMatchVectorSize()
virtual void scale(const VectorSpaceVector< Number > &scaling_factors) override
BlockVector(const BlockVector< OtherNumber > &v)
typename BaseClass::iterator iterator
BlockVector(const BlockVector< Number > &V)
void reinit(const size_type num_blocks, const size_type block_size=0, const bool omit_zeroing_entries=false)
virtual std::size_t memory_consumption() const override
virtual Number mean_value() const override
BlockVector< Number > & operator=(const TrilinosWrappers::MPI::BlockVector &trilinos_vec)
BlockVector< Number > & operator=(const PETScWrappers::MPI::BlockVector &petsc_vec)
virtual bool all_zero() const override
virtual void compress(::VectorOperation::values operation) override
void add(const std::vector< size_type > &indices, const ::Vector< OtherNumber > &values)
BlockVector & operator=(const Vector< Number > &V)
virtual real_type l2_norm() const override
virtual Number operator*(const VectorSpaceVector< Number > &V) const override
typename BaseClass::BlockType BlockType
typename BaseClass::size_type size_type
Number multivector_inner_product_with_metric(const FullMatrixType &matrix, const BlockVector< Number > &V, const bool symmetric=false) const
void zero_out_ghost_values() const
virtual BlockVector< Number > & operator+=(const VectorSpaceVector< Number > &V) override
virtual void add(const Number a, const VectorSpaceVector< Number > &V) override
typename BaseClass::const_reference const_reference
real_type lp_norm(const real_type p) const
virtual BlockVector & operator=(const value_type s) override
BlockVector & operator=(const BlockVector< Number2 > &V)
typename BaseClass::real_type real_type
void reinit(const BlockVector< Number2 > &V, const bool omit_zeroing_entries=false)
BlockVector & operator=(const BlockVector &V)
virtual void print(std::ostream &out, const unsigned int precision=3, const bool scientific=true, const bool across=true) const override
void sadd(const Number s, const BlockVector< Number > &V)
virtual void add(const Number a) override
BlockVector(const std::vector< IndexSet > &local_ranges, const std::vector< IndexSet > &ghost_indices, const MPI_Comm &communicator)
void reinit(const std::vector< size_type > &N, const bool omit_zeroing_entries=false)
virtual void equ(const Number a, const VectorSpaceVector< Number > &V) override
typename BaseClass::const_pointer const_pointer
typename BaseClass::reference reference
typename BaseClass::const_iterator const_iterator
BlockVector(const std::vector< IndexSet > &local_ranges, const MPI_Comm &communicator)
void multivector_inner_product(FullMatrixType &matrix, const BlockVector< Number > &V, const bool symmetric=false) const
void zero_out_ghosts() const
void update_ghost_values() const
void mmult(BlockVector< Number > &V, const FullMatrixType &matrix, const Number s=Number(0.), const Number b=Number(1.)) const
virtual Number add_and_dot(const Number a, const VectorSpaceVector< Number > &V, const VectorSpaceVector< Number > &W) override
virtual size_type size() const override
typename BaseClass::pointer pointer
@ matrix
Contents is actually a matrix.
@ symmetric
Matrix is symmetric.
BlockVector< double > BlockVector
SymmetricTensor< 2, dim, Number > b(const Tensor< 2, dim, Number > &F)