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>
226 std::shared_ptr<const Utilities::MPI::CommunicationPatternBase>
227 communication_pattern = {})
override;
233 add(
const Number a)
override;
337 size()
const override;
357 print(std::ostream & out,
358 const unsigned int precision = 3,
359 const bool scientific =
true,
360 const bool across =
true)
const override;
372 const unsigned int precision = 9)
const;
407 template <
typename Archive>
409 serialize(Archive &ar,
const unsigned int version);
420 template <
typename Number2>
427 template <
typename Number>
434 template <
typename Number>
441 template <
typename Number>
442 template <
typename InputIterator>
444 const InputIterator last)
447 std::copy(
first, last, this->begin());
452 template <
typename Number>
461 template <
typename Number>
470 template <
typename Number>
473 const unsigned int precision,
474 const bool scientific,
482 template <
typename Number>
483 template <
typename Archive>
489 ar &this->stored_elements;
491 if (this->size() != current_size)
492 this->reinit(this->size());
493 ar &boost::serialization::make_array(this->values.get(), this->size());
498 template <
typename Number>
510template <
typename Number>
519 template <
typename Number>
533# 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)
unsigned int global_dof_index