16#ifndef dealii_la_vector_h
17#define dealii_la_vector_h
33#include <boost/version.hpp>
34#if BOOST_VERSION >= 106400
35# include <boost/serialization/array_wrapper.hpp>
37# include <boost/serialization/array.hpp>
39#include <boost/serialization/split_member.hpp>
76 template <
typename Number>
111 template <
typename InputIterator>
112 Vector(
const InputIterator
first,
const InputIterator last);
124 const bool omit_zeroing_entries =
false)
override;
134 template <
typename Number2>
137 const bool omit_zeroing_entries =
false);
150 const bool omit_zeroing_entries =
false)
override;
159 const bool omit_zeroing_entries =
false)
override;
179 template <
typename Number2>
225 std::shared_ptr<const Utilities::MPI::CommunicationPatternBase>
226 communication_pattern = {})
override;
232 add(
const Number a)
override;
336 size()
const override;
356 print(std::ostream & out,
357 const unsigned int precision = 3,
358 const bool scientific =
true,
359 const bool across =
true)
const override;
371 const unsigned int precision = 9)
const;
406 template <
typename Archive>
408 serialize(Archive &ar,
const unsigned int version);
419 template <
typename Number2>
426 template <
typename Number>
433 template <
typename Number>
440 template <
typename Number>
441 template <
typename InputIterator>
443 const InputIterator last)
451 template <
typename Number>
460 template <
typename Number>
469 template <
typename Number>
472 const unsigned int precision,
473 const bool scientific,
481 template <
typename Number>
482 template <
typename Archive>
488 ar & this->stored_elements;
490 if (this->
size() != current_size)
492 ar &boost::serialization::make_array(this->
values.get(), this->size());
497 template <
typename Number>
509template <
typename Number>
518 template <
typename Number>
532# include <deal.II/lac/la_vector.templates.h>
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define DeclException0(Exception0)
static ::ExceptionBase & ExcVectorTypeNotCompatible()
virtual VectorSpaceVector< Number >::real_type linfty_norm() const override
std::size_t memory_consumption() const
void print_as_numpy_array(std::ostream &out, const unsigned int precision=9) const
void print(std::ostream &out, const unsigned int precision=3, const bool scientific=true) const
virtual Vector< Number > & operator=(const Number s) override
virtual void reinit(const IndexSet &locally_stored_indices, const bool omit_zeroing_entries=false) override
virtual VectorSpaceVector< Number >::real_type l1_norm() const override
virtual void scale(const VectorSpaceVector< Number > &scaling_factors) override
virtual Number operator*(const VectorSpaceVector< Number > &V) const override
virtual Vector< Number > & operator*=(const Number factor) override
virtual void reinit(const size_type size, const bool omit_zeroing_entries=false) override
virtual void add(const Number a, const VectorSpaceVector< Number > &V, const Number b, const VectorSpaceVector< Number > &W) override
void serialize(Archive &ar, const unsigned int version)
typename numbers::NumberTraits< Number >::real_type real_type
virtual ::IndexSet locally_owned_elements() const override
virtual VectorSpaceVector< Number >::real_type l2_norm() const override
Vector< Number > & operator=(const Vector< Number > &in_vector)
types::global_dof_index size_type
virtual value_type mean_value() const override
virtual Vector< Number > & operator+=(const VectorSpaceVector< Number > &V) override
virtual void add(const Number a, const VectorSpaceVector< Number > &V) override
virtual bool all_zero() const override
virtual void print(std::ostream &out, const unsigned int precision=3, const bool scientific=true, const bool across=true) const override
virtual void reinit(const VectorSpaceVector< Number > &V, const bool omit_zeroing_entries=false) override
void block_read(std::istream &in)
virtual void sadd(const Number s, const Number a, const VectorSpaceVector< Number > &V) override
void block_write(std::ostream &out) const
virtual Vector< Number > & operator/=(const Number factor) override
typename ReadWriteVector< Number >::value_type value_type
virtual std::size_t memory_consumption() const override
virtual void add(const Number a) override
virtual size_type size() const override
virtual Number add_and_dot(const Number a, const VectorSpaceVector< Number > &V, const VectorSpaceVector< Number > &W) override
bool has_ghost_elements() const
virtual Vector< Number > & operator-=(const VectorSpaceVector< Number > &V) override
Vector< Number > & operator=(const Vector< Number2 > &in_vector)
void reinit(const ReadWriteVector< Number2 > &in_vector, const bool omit_zeroing_entries=false)
virtual void equ(const Number a, const VectorSpaceVector< Number > &V) override
IndexSet complete_index_set(const IndexSet::size_type N)
SymmetricTensor< 2, dim, Number > b(const Tensor< 2, dim, Number > &F)
VectorType::value_type * begin(VectorType &V)
void copy(const T *begin, const T *end, U *dest)
void reinit(MatrixBlock< MatrixType > &v, const BlockSparsityPattern &p)
unsigned int global_dof_index