|
Reference documentation for deal.II version 9.2.0
|
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\)
\(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\)
\(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\)
\(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Go to the documentation of this file.
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>
78 template <
typename Number>
113 template <
typename InputIterator>
114 Vector(
const InputIterator
first,
const InputIterator last);
126 const bool omit_zeroing_entries =
false)
override;
136 template <
typename Number2>
139 const bool omit_zeroing_entries =
false);
152 const bool omit_zeroing_entries =
false)
override;
161 const bool omit_zeroing_entries =
false)
override;
181 template <
typename Number2>
228 std::shared_ptr<const CommunicationPatternBase> communication_pattern =
229 std::shared_ptr<const CommunicationPatternBase>())
override;
235 add(
const Number a)
override;
339 size()
const override;
359 print(std::ostream & out,
360 const unsigned int precision = 3,
361 const bool scientific =
true,
362 const bool across =
true)
const override;
374 const unsigned int precision = 9)
const;
417 template <
typename Archive>
419 serialize(Archive &ar,
const unsigned int version);
424 template <
typename Number2>
431 template <
typename Number>
438 template <
typename Number>
445 template <
typename Number>
446 template <
typename InputIterator>
448 const InputIterator last)
456 template <
typename Number>
465 template <
typename Number>
474 template <
typename Number>
477 const unsigned int precision,
478 const bool scientific,
486 template <
typename Number>
487 template <
typename Archive>
493 ar & this->stored_elements;
495 if (this->
size() != current_size)
497 ar &boost::serialization::make_array(this->
values.get(), this->
size());
502 template <
typename Number>
516 template <
typename Number>
525 template <
typename Number>
539 # include <deal.II/lac/la_vector.templates.h>
types::global_dof_index size_type
virtual VectorSpaceVector< Number >::real_type l2_norm() const override
friend class boost::serialization::access
void print_as_numpy_array(std::ostream &out, const unsigned int precision=9) const
void block_read(std::istream &in)
std::size_t memory_consumption() const
virtual void sadd(const Number s, const Number a, const VectorSpaceVector< Number > &V) override
virtual value_type mean_value() const override
virtual void scale(const VectorSpaceVector< Number > &scaling_factors) override
virtual Vector< Number > & operator/=(const Number factor) override
virtual Vector< Number > & operator*=(const Number factor) override
void block_write(std::ostream &out) const
Vector< Number > & operator=(const Vector< Number > &in_vector)
typename numbers::NumberTraits< Number >::real_type real_type
void serialize(Archive &ar, const unsigned int version)
virtual void equ(const Number a, const VectorSpaceVector< Number > &V) override
virtual Vector< Number > & operator-=(const VectorSpaceVector< Number > &V) override
typename ReadWriteVector< Number >::value_type value_type
virtual bool all_zero() const override
unsigned int global_dof_index
void print(std::ostream &out, const unsigned int precision=3, const bool scientific=true) const
VectorType::value_type * begin(VectorType &V)
void reinit(MatrixBlock< MatrixType > &v, const BlockSparsityPattern &p)
#define DEAL_II_NAMESPACE_OPEN
bool has_ghost_elements() const
SymmetricTensor< 2, dim, Number > b(const Tensor< 2, dim, Number > &F)
virtual Vector< Number > & operator+=(const VectorSpaceVector< Number > &V) override
static ::ExceptionBase & ExcVectorTypeNotCompatible()
IndexSet complete_index_set(const IndexSet::size_type N)
virtual VectorSpaceVector< Number >::real_type linfty_norm() const override
AlignedVector< Number > values
virtual ::IndexSet locally_owned_elements() 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 size_type size, const bool omit_zeroing_entries=false) override
virtual std::size_t memory_consumption() const override
#define DeclException0(Exception0)
virtual VectorSpaceVector< Number >::real_type l1_norm() const override
virtual Number add_and_dot(const Number a, const VectorSpaceVector< Number > &V, const VectorSpaceVector< Number > &W) override
virtual size_type size() const override
virtual Number operator*(const VectorSpaceVector< Number > &V) const override
#define DEAL_II_NAMESPACE_CLOSE
void copy(const T *begin, const T *end, U *dest)
virtual void add(const Number a) override