 |
Ginkgo
Generated from pipelines/3133041809 branch based on develop. Ginkgo version 2.0.0
A numerical linear algebra library targeting many-core architectures
|
5 #ifndef GINKGO_BLOCK_MATRIX_HPP
6 #define GINKGO_BLOCK_MATRIX_HPP
8 #include <ginkgo/config.hpp>
9 #include <ginkgo/core/base/dense_cache.hpp>
10 #include <ginkgo/core/base/lin_op.hpp>
11 #include <ginkgo/core/base/polymorphic_object.hpp>
12 #include <ginkgo/core/base/range.hpp>
70 GKO_ENSURE_IN_DIMENSION_BOUNDS(i, j, block_size_);
71 return blocks_[i * block_size_[1] + j].get();
81 static std::unique_ptr<BlockOperator>
create(
82 std::shared_ptr<const Executor> exec);
93 static std::unique_ptr<BlockOperator>
create(
94 std::shared_ptr<const Executor> exec,
95 std::vector<std::vector<std::shared_ptr<const LinOp>>> blocks);
125 explicit BlockOperator(std::shared_ptr<const Executor> exec);
128 std::shared_ptr<const Executor> exec,
129 std::vector<std::vector<std::shared_ptr<const LinOp>>> blocks);
140 std::vector<local_span> row_spans_;
141 std::vector<local_span> col_spans_;
142 std::vector<std::shared_ptr<const LinOp>> blocks_;
150 detail::DenseCache<default_precision> one_;
156 #endif // GINKGO_BLOCK_MATRIX_HPP
const LinOp * block_at(size_type i, size_type j) const
Const access to a specific block.
Definition: block_operator.hpp:68
Definition: lin_op.hpp:163
std::size_t size_type
Integral type used for allocation quantities.
Definition: types.hpp:102
A BlockOperator represents a linear operator that is partitioned into multiple blocks.
Definition: block_operator.hpp:47
BlockOperator & operator=(const BlockOperator &other)
Copy assigns a BlockOperator.
The Ginkgo namespace.
Definition: abstract_factory.hpp:19
BlockOperator(const BlockOperator &other)
Copy constructs a BlockOperator.
dim< 2 > get_block_size() const
Get the block dimension of this, i.e.
Definition: block_operator.hpp:58
This mixin is used to enable a default Cloneable::clone() implementation and similar for objects that...
Definition: polymorphic_object.hpp:372
Abstract interface class for (multi-)vector types.
Definition: multivector.hpp:81
static std::unique_ptr< BlockOperator > create(std::shared_ptr< const Executor > exec)
Create empty BlockOperator.