|
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_block_indices_h
17 #define dealii_block_indices_h
111 reinit(
const std::vector<size_type> &block_sizes);
168 std::pair<unsigned int, size_type>
243 const unsigned int n = bi.size();
247 s << bi.block_size(0);
249 for (
unsigned int i = 1; i < n; ++i)
250 s <<
' ' << bi.block_size(i);
251 s <<
"]->" << bi.total_size();
275 n_blocks =
static_cast<unsigned int>(block_sizes.size());
303 :
n_blocks(static_cast<unsigned
int>(block_sizes.size()))
304 , start_indices(block_sizes.size() + 1)
313 , start_indices(std::move(
b.start_indices))
316 b.start_indices = std::vector<size_type>(1, 0);
330 inline std::pair<unsigned int, BlockIndices::size_type>
386 for (
unsigned int i = 0; i <
n_blocks; ++i)
420 start_indices = std::move(
b.start_indices);
423 b.start_indices = std::vector<size_type>(1, 0);
void push_back(const size_type size)
unsigned int size() const
std::string int_to_string(const unsigned int value, const unsigned int digits=numbers::invalid_unsigned_int)
size_type block_start(const unsigned int i) const
#define AssertIndexRange(index, range)
std::string to_string(const T &t)
size_type block_size(const unsigned int i) const
size_type total_size() const
std::vector< size_type > start_indices
std::enable_if< IsBlockVector< VectorType >::value, unsigned int >::type n_blocks(const VectorType &vector)
size_type local_to_global(const unsigned int block, const size_type index) const
unsigned int global_dof_index
#define DEAL_II_NAMESPACE_OPEN
SymmetricTensor< 2, dim, Number > b(const Tensor< 2, dim, Number > &F)
void swap(BlockIndices &u, BlockIndices &v)
#define AssertDimension(dim1, dim2)
BlockIndices & operator=(const BlockIndices &b)
types::global_dof_index size_type
#define Assert(cond, exc)
void reinit(const unsigned int n_blocks, const size_type n_elements_per_block)
bool operator==(const BlockIndices &b) const
#define DEAL_II_NAMESPACE_CLOSE
void swap(BlockIndices &u, BlockIndices &v)
std::pair< unsigned int, size_type > global_to_local(const size_type i) const
std::string to_string() const
void swap(BlockIndices &b)
std::size_t memory_consumption() const