25#ifndef dftefeQuadratureValuesContainer_h
26#define dftefeQuadratureValuesContainer_h
37 template <
typename ValueType, utils::MemorySpace memorySpace>
60 std::shared_ptr<const QuadratureRuleContainer> quadratureRuleContainer,
62 const ValueType initVal = ValueType());
68 std::shared_ptr<const QuadratureRuleContainer> quadratureRuleContainer,
70 const ValueType initVal = ValueType());
81 template <utils::MemorySpace memorySpaceSrc>
85 template <utils::MemorySpace memorySpaceSrc>
89 const ValueType *values);
94 template <utils::MemorySpace memorySpaceDst>
98 template <utils::MemorySpace memorySpaceDst>
102 ValueType * values)
const;
104 std::shared_ptr<const QuadratureRuleContainer>
183 template <
typename ValueType1,
204 template <
typename ValueType, dftefe::utils::MemorySpace memorySpace>
218 template <
typename ValueType1,
222 scale(ValueType1 alpha,
235 template <
typename ValueType, dftefe::utils::MemorySpace memorySpace>
237 scale(ValueType alpha,
Definition: LinAlgOpContext.h:38
Definition: QuadratureValuesContainer.h:39
size_type nCells() const
Definition: QuadratureValuesContainer.t.cpp:276
void setValue(const ValueType value)
Definition: QuadratureValuesContainer.t.cpp:214
typename dftefe::utils::MemoryStorage< ValueType, memorySpace >::const_iterator const_iterator
Definition: QuadratureValuesContainer.h:55
QuadratureValuesContainer & operator=(const QuadratureValuesContainer &rhs)
Definition: QuadratureValuesContainer.t.cpp:173
void reinit(std::shared_ptr< const QuadratureRuleContainer > quadratureRuleContainer, const size_type numberComponents, const ValueType initVal=ValueType())
Definition: QuadratureValuesContainer.t.cpp:123
void getCellValues(const size_type cellId, ValueType *values) const
Definition: QuadratureValuesContainer.t.cpp:236
size_type nCellQuadraturePoints(const size_type cellId) const
Definition: QuadratureValuesContainer.t.cpp:298
SizeTypeVector d_numCellEntries
Definition: QuadratureValuesContainer.h:165
typename dftefe::utils::MemoryStorage< ValueType, memorySpace >::pointer pointer
Definition: QuadratureValuesContainer.h:44
SizeTypeVector d_cellStartIds
Definition: QuadratureValuesContainer.h:164
const SizeTypeVector & getNumberCellEntries() const
Definition: QuadratureValuesContainer.t.cpp:333
typename dftefe::utils::MemoryStorage< ValueType, memorySpace >::reference reference
Definition: QuadratureValuesContainer.h:47
size_type d_numberComponents
Definition: QuadratureValuesContainer.h:163
QuadratureValuesContainer(std::shared_ptr< const QuadratureRuleContainer > quadratureRuleContainer, const size_type numberComponents, const ValueType initVal=ValueType())
std::shared_ptr< const QuadratureRuleContainer > getQuadratureRuleContainer() const
Definition: QuadratureValuesContainer.t.cpp:261
size_type cellStartId(const size_type cellId) const
Definition: QuadratureValuesContainer.t.cpp:315
~QuadratureValuesContainer()=default
void getCellQuadValues(const size_type cellId, const size_type quadId, ValueType *values) const
Definition: QuadratureValuesContainer.t.cpp:248
iterator end()
Definition: QuadratureValuesContainer.t.cpp:355
typename dftefe::utils::MemoryStorage< ValueType, memorySpace >::iterator iterator
Definition: QuadratureValuesContainer.h:52
typename dftefe::utils::MemoryStorage< ValueType, memorySpace >::const_reference const_reference
Definition: QuadratureValuesContainer.h:50
iterator begin()
Definition: QuadratureValuesContainer.t.cpp:341
ValueType * data()
Definition: QuadratureValuesContainer.t.cpp:401
void setCellQuadValues(const size_type cellId, const size_type quadId, const ValueType *values)
Definition: QuadratureValuesContainer.t.cpp:223
const SizeTypeVector & getCellStartIds() const
Definition: QuadratureValuesContainer.t.cpp:325
void setCellValues(const size_type cellId, const ValueType *values)
Definition: QuadratureValuesContainer.t.cpp:203
size_type nCellEntries(const size_type cellId) const
Definition: QuadratureValuesContainer.t.cpp:306
size_type nEntries() const
Definition: QuadratureValuesContainer.t.cpp:290
size_type getNumberComponents() const
Definition: QuadratureValuesContainer.t.cpp:268
std::shared_ptr< const QuadratureRuleContainer > d_quadratureRuleContainer
Definition: QuadratureValuesContainer.h:167
Storage d_storage
Definition: QuadratureValuesContainer.h:166
QuadratureValuesContainer()
Definition: QuadratureValuesContainer.t.cpp:87
size_type nQuadraturePoints() const
Definition: QuadratureValuesContainer.t.cpp:283
Definition: MemoryStorage.h:38
ValueType * iterator
Definition: MemoryStorage.h:59
ValueType * pointer
Definition: MemoryStorage.h:56
blas::scalar_type< ValueType1, ValueType2 > scalar_type
Definition: BlasLapackTypedef.h:70
void scale(ValueType1 alpha, const QuadratureValuesContainer< ValueType2, memorySpace > &u, QuadratureValuesContainer< linearAlgebra::blasLapack::scalar_type< ValueType1, ValueType2 >, memorySpace > &w, linearAlgebra::LinAlgOpContext< memorySpace > &linAlgOpContext)
Perform .
Definition: QuadratureValuesContainer.t.cpp:495
void add(linearAlgebra::blasLapack::scalar_type< ValueType1, ValueType2 > a, const QuadratureValuesContainer< ValueType1, memorySpace > &u, linearAlgebra::blasLapack::scalar_type< ValueType1, ValueType2 > b, const QuadratureValuesContainer< ValueType2, memorySpace > &v, QuadratureValuesContainer< linearAlgebra::blasLapack::scalar_type< ValueType1, ValueType2 >, memorySpace > &w, linearAlgebra::LinAlgOpContext< memorySpace > &linAlgOpContext)
Perform .
Definition: QuadratureValuesContainer.t.cpp:447
MemorySpace
Definition: MemorySpaceType.h:37
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
unsigned int size_type
Definition: TypeConfig.h:8