![]() |
Dune-Fufem 2.11-git
|
Loading...
Searching...
No Matches
Dune::Fufem::NumPyVectorBackend< T > Class Template Reference
Implementation of the VectorBackend concept for numpy vectors. More...
#include <dune/fufem/backends/numpybackend.hh>
Public Types | |
| using | Vector = pybind11::array_t< T > |
| using | value_type = T |
| using | LocalVector = Dune::Assembler::FlatVector< value_type > |
Public Member Functions | |
| NumPyVectorBackend (Vector &vector) | |
| template<class SizeInfo > | |
| void | resize (const SizeInfo &sizeInfo) |
| template<class MultiIndex > | |
| decltype(auto) | operator[] (const MultiIndex &index) const |
| template<class MultiIndex > | |
| decltype(auto) | operator[] (const MultiIndex &index) |
| template<typename Value > | |
| void | operator= (const Value &value) |
| void | operator= (const NumPyVectorBackend< T > &other) |
| const Vector & | vector () const |
| Vector & | vector () |
| template<class LocalView > | |
| void | scatter (const LocalView &localView, const LocalVector &localVector) |
| void | setZero () |
Detailed Description
template<class T>
class Dune::Fufem::NumPyVectorBackend< T >
class Dune::Fufem::NumPyVectorBackend< T >
Implementation of the VectorBackend concept for numpy vectors.
This implements VectorBackend concept from dune-functions for flat numpy arrays represented by pybind11::array_t.
Member Typedef Documentation
◆ LocalVector
template<class T >
| using Dune::Fufem::NumPyVectorBackend< T >::LocalVector = Dune::Assembler::FlatVector<value_type> |
◆ value_type
template<class T >
| using Dune::Fufem::NumPyVectorBackend< T >::value_type = T |
◆ Vector
template<class T >
| using Dune::Fufem::NumPyVectorBackend< T >::Vector = pybind11::array_t<T> |
Constructor & Destructor Documentation
◆ NumPyVectorBackend()
template<class T >
|
inline |
Member Function Documentation
◆ operator=() [1/2]
template<class T >
|
inline |
◆ operator=() [2/2]
template<class T >
template<typename Value >
|
inline |
◆ operator[]() [1/2]
template<class T >
template<class MultiIndex >
|
inline |
◆ operator[]() [2/2]
template<class T >
template<class MultiIndex >
|
inline |
◆ resize()
template<class T >
template<class SizeInfo >
|
inline |
◆ scatter()
template<class T >
template<class LocalView >
|
inline |
◆ setZero()
template<class T >
|
inline |
◆ vector() [1/2]
template<class T >
|
inline |
◆ vector() [2/2]
template<class T >
|
inline |
The documentation for this class was generated from the following file:
