|
template<class DataTransferTag = tag::interpolation_datatransfer> |
| DOFVector (std::shared_ptr< GB > const &basis, DataTransferTag={}) |
|
template<class GB_ , class DataTransferTag = tag::interpolation_datatransfer, REQUIRES(Concepts::Similar< GB_, GB >) > |
| DOFVector (GB_ &&basis, DataTransferTag tag={}) |
|
template<class GV , class PBF , class DataTransferTag = tag::interpolation_datatransfer, REQUIRES(Concepts::PreBasisFactory< PBF, GV >) > |
| DOFVector (GV const &gridView, PBF const &preBasisFactory, DataTransferTag tag={}) |
|
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 () |
|
auto const & | dataTransfer () const |
| Return the associated DataTransfer object.
|
|
auto & | dataTransfer () |
| Return the associated DataTransfer object.
|
|
void | setDataTransfer (DataTransfer< GB, Coefficients > dataTransfer) |
| Assign the DataTransfer object.
|
|
template<class DataTransferTag > |
void | setDataTransfer (DataTransferTag tag) |
| Create a new DataTransfer object based on the operation type.
|
|
template<class Type > |
auto | makeDerivative (Type type) const |
|
template<class Basis > |
void | resize (Basis const &basis) |
| Resize the vector to the size of the basis.
|
|
template<class Basis > |
void | resizeZero (Basis const &basis) |
| Resize the vector to the size of the basis and set to zero.
|
|
| 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 (Basis const &basis) |
| Resize the vector to the size of the basis.
|
|
void | resizeZero (Basis const &basis) |
| Resize the vector to the size of the basis and set to zero.
|
|
void | init (Basis const &basis, bool clear) |
|
void | finish () |
| Finish the insertion of values, see init()
|
|
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.
|
|
Impl::value_type | get (Index const &idx) const |
| Return the value of the vector at the local index idx.
|
|
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 | gather (std::vector< Index > const &indices, Buffer &buffer) |
| Call gather the values associated to the indices into the buffer.
|
|
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 | scatter (std::vector< Index > const &indices, Buffer const &values) |
| Call scatter the values associated to the indices into the vector.
|
|
void | forEach (LocalInd const &localInd, Func &&func) |
| Apply func to each value at given indices localInd . More...
|
|
void | forEach (LocalInd const &localInd, Func &&func) const |
| Apply func to each value at given indices localInd . More...
|
|
|
template<class , class , class , class > |
class | DiscreteFunction |
|
template<class Range = void, class... Indices> |
auto | valueOf (DOFVector &dofVec, Indices... ii) |
| A Generator to transform a DOFVector into a DiscreteFunction.
|
|
template<class Range = void, class... Indices> |
auto | valueOf (DOFVector const &dofVec, Indices... ii) |
| A Generator to transform a const DOFVector into a DiscreteFunction.
|
|
template<class Type > |
auto | derivativeOf (DOFVector const &dofVec, Type type) |
|
auto | gradientOf (DOFVector const &dofVec) |
| Return a derivative grid-function representing the gradient (jacobian) of the DOFVector.
|
|
auto | divergenceOf (DOFVector const &dofVec) |
| Return a derivative grid-function representing the divergence of the DOFVector.
|
|
auto | partialDerivativeOf (DOFVector const &dofVec, std::size_t comp) |
| Return a derivative grid-function representing the partial derivative wrt. the components comp of the DOFVector.
|
|
template<class GB, class T = double, class
Traits = BackendTraits>
class AMDiS::DOFVector< GB, T, Traits >
The basic container that stores a base vector and a corresponding basis.
- Template Parameters
-
GB | Basis of the vector |
T | Type of the coefficients |
Traits | Collection of parameter for the linear-algebra backend |