|
| DOFVector (std::shared_ptr< GB > const &basis, DataTransferOperation op=DataTransferOperation::INTERPOLATE) |
|
template<class GB_ , REQUIRES(Concepts::Similar< GB_, GB >) > |
| DOFVector (GB_ &&basis, DataTransferOperation op=DataTransferOperation::INTERPOLATE) |
|
template<class GV , class PBF , REQUIRES(Concepts::PreBasisFactory< PBF, GV, MultiIndex_t< PBF >>) > |
| DOFVector (GV const &gridView, PBF const &preBasisFactory, DataTransferOperation op=DataTransferOperation::INTERPOLATE) |
|
GlobalBasis const & | basis () const |
| Return the global basis.
|
|
Coefficients const & | coefficients () const |
|
Coefficients & | coefficients () |
|
void | backup (std::string const &filename) |
| Write DOFVector to file.
|
|
void | restore (std::string const &filename) |
| Read backup data from file.
|
|
void | resize () |
|
void | resizeZero () |
|
DataTransfer const & | dataTransfer () const |
| Return the associated DataTransfer object.
|
|
DataTransfer & | dataTransfer () |
| Return the associated DataTransfer object.
|
|
void | setDataTransfer (DataTransfer const &dataTransfer) |
| Assign the DataTransfer object.
|
|
void | setDataTransfer (DataTransfer &&dataTransfer) |
|
void | setDataTransfer (DataTransferOperation op) |
| Create a new DataTransfer object based on the operation type.
|
|
| VectorFacade (GlobalBasis const &basis) |
|
Impl const & | impl () const |
| Return the underlying linear algebra backend.
|
|
Impl & | impl () |
|
std::size_t | localSize () const |
| Return the number of entries in the local part of the vector.
|
|
std::size_t | globalSize () const |
| Return the number of entries in the global vector.
|
|
void | resize (SizeInfo const &sizeInfo) |
| Resize the vector to the size of the basis.
|
|
void | resizeZero (SizeInfo const &sizeInfo) |
| Resize the vector to the size of the basis and set to zero.
|
|
void | init (SizeInfo const &sizeInfo, bool clear) |
|
void | finish () |
| Finish the insertion of values, see init()
|
|
Impl::value_type | at (Index const &idx) const |
| Return the value of the vector at the local index idx.
|
|
void | insert (Index const &idx, typename Impl::value_type const &value, Assign assign={}) |
| Insert a single value into the matrix (add or overwrite to existing value) More...
|
|
void | set (Index const &idx, typename Impl::value_type const &value) |
| See insert for assignment operation Assigner::assign.
|
|
void | add (Index const &idx, typename Impl::value_type const &value) |
| See insert for assignment operation Assigner::plus_assign.
|
|
void | gather (LocalView const &localView, Node const &node, Buffer &buffer) const |
| Extract values from the vector referring to the given local indices and store it into a buffer. More...
|
|
void | gather (LocalView const &localView, Buffer &buffer) const |
|
void | scatter (LocalView const &localView, Node const &node, NodeVector const &localVector, MaskRange const &mask, Assign assign) |
| Insert a block of values into the vector (add or overwrite to existing values) More...
|
|
void | scatter (LocalView const &localView, Node const &node, NodeVector const &localVector, Assign assign) |
| Call scatter with MaskRange set to FakeContainer.
|
|
void | scatter (LocalView const &localView, LocalVector const &localVector, Assign assign) |
| Call scatter with Node given by the tree of the localView .
|
|
void | forEach (LocalInd const &localInd, Func &&func) |
| Apply func to each value at given indices localInd . More...
|
|
void | forEach (Func &&func) |
| Call forEach for all entries in the vector.
|
|
void | forEach (LocalInd const &localInd, Func &&func) const |
| Apply func to each value at given indices localInd . More...
|
|
void | forEach (Func &&func) const |
| Call forEach for all entries in the vector.
|
|
template<class GB, class T = double, class TraitsType = BackendTraits<GB>>
class AMDiS::DOFVector< GB, T, TraitsType >
The basic container that stores a base vector and a corresponding basis.
- Template Parameters
-
GB | Basis of the vector |
T | Type of the coefficients |
TraitsType | Collection of parameter for the linear-algebra backend |