BlockVector.h¶
Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
-
class
BlockVector¶ Block vector
-
BlockVector(std::size_t n = 0)¶ Constructor
-
BlockVector *
copy() const¶ Return copy of tensor
Set function
-
std::shared_ptr<const GenericVector>
get_block(std::size_t i) const¶ Get sub-vector (const)
-
std::shared_ptr<GenericVector>
get_block(std::size_t)¶ Get sub-vector (non-const)
-
void
axpy(double a, const BlockVector &x)¶ Add multiple of given vector (AXPY operation)
-
double
inner(const BlockVector &x) const¶ Return inner product with given vector
-
double
norm(std::string norm_type) const¶ Return norm of vector
-
double
min() const¶ Return minimum value of vector
-
double
max() const¶ Return maximum value of vector
-
const BlockVector &
operator*=(double a)¶ Multiply vector by given number
-
const BlockVector &
operator/=(double a)¶ Divide vector by given number
-
const BlockVector &
operator+=(const BlockVector &x)¶ Add given vector
-
const BlockVector &
operator-=(const BlockVector &x)¶ Subtract given vector
-
const BlockVector &
operator=(const BlockVector &x)¶ Assignment operator
-
const BlockVector &
operator=(double a)¶ Assignment operator
-
bool
empty() const¶ Return true if empty
-
std::size_t
size() const¶ Number of vectors
-
std::string
str(bool verbose) const¶ Return informal string representation (pretty-print)
-