DFT-EFE
 
Loading...
Searching...
No Matches
MultiVectorProductSpace.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2021. *
3 * The Regents of the University of Michigan and DFT-EFE developers. *
4 * *
5 * This file is part of the DFT-EFE code. *
6 * *
7 * DFT-EFE is free software: you can redistribute it and/or modify *
8 * it under the terms of the Lesser GNU General Public License as *
9 * published by the Free Software Foundation, either version 3 of *
10 * the License, or (at your option) any later version. *
11 * *
12 * DFT-EFE is distributed in the hope that it will be useful, but *
13 * WITHOUT ANY WARRANTY; without even the implied warranty *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
15 * See the Lesser GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU Lesser General Public *
18 * License at the top level of DFT-EFE distribution. If not, see *
19 * <https://www.gnu.org/licenses/>. *
20 ******************************************************************************/
21
22/*
23 * @author Avirup Sircar
24 */
25
26#ifndef dftefeMultiVectorProductSpace_h
27#define dftefeMultiVectorProductSpace_h
28
29#include <utils/TypeConfig.h>
31#include <utils/MPIPatternP2P.h>
34#include <memory>
35
36namespace dftefe
37{
38 namespace linearAlgebra
39 {
50 template <typename ValueType, utils::MemorySpace memorySpace>
51 class MultiVectorProductSpace : public MultiVector<ValueType, memorySpace>
52 {
53 public:
55 std::shared_ptr<const utils::mpi::MPIPatternP2P<memorySpace>>
56 mpiPatternP2P,
57 std::shared_ptr<LinAlgOpContext<memorySpace>> linAlgOpContext,
60 ValueType initVal = utils::Types<ValueType>::zero);
61
63
65 numSpaces() const;
66
68 numVectorsPerSpace() const;
69
70 private:
73 };
74
75 } // namespace linearAlgebra
76} // namespace dftefe
77
79#endif // dftefeMultiVectorProductSpace_h
Definition: LinAlgOpContext.h:52
MultiVector for product spaces: flat layout M × S × N where S = numSpaces, N = numVectorsPerSpace.
Definition: MultiVectorProductSpace.h:52
size_type numVectorsPerSpace() const
Definition: MultiVectorProductSpace.t.cpp:63
size_type d_numVectorsPerSpace
Definition: MultiVectorProductSpace.h:72
size_type numSpaces() const
Definition: MultiVectorProductSpace.t.cpp:56
size_type d_numSpaces
Definition: MultiVectorProductSpace.h:71
An class template to encapsulate a MultiVector. A MultiVector is a collection of vectors belonging t...
Definition: MultiVector.h:134
Definition: Defaults.h:38
A class template to store the communication pattern (i.e., which entries/nodes to receive from which ...
Definition: MPIPatternP2P.h:197
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
std::uint64_t size_type
Definition: TypeConfig.h:9