DFT-EFE
 
Loading...
Searching...
No Matches
OrthonormalizationFunctions.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 dftefeOrthonormalizationFunctions_h
27#define dftefeOrthonormalizationFunctions_h
28
29#include <utils/TypeConfig.h>
31#include <string>
38
39namespace dftefe
40{
41 namespace linearAlgebra
42 {
43 template <typename ValueTypeOperator,
44 typename ValueTypeOperand,
45 utils::MemorySpace memorySpace>
47 {
48 public:
49 using ValueType =
52 using OpContext =
54
60
65 const OpContext &B = IdentityOperatorContext<ValueTypeOperator,
66 ValueTypeOperand,
67 memorySpace>());
68
72 size_type maxPass,
73 RealType shiftTolerance,
74 RealType identityTolerance,
76 const OpContext &B = IdentityOperatorContext<ValueTypeOperator,
77 ValueTypeOperand,
78 memorySpace>());
79
84 const OpContext &B = IdentityOperatorContext<ValueTypeOperator,
85 ValueTypeOperand,
86 memorySpace>());
87
88 }; // end of class OrthonormalizationFunctions
89 } // end of namespace linearAlgebra
90} // end of namespace dftefe
92#endif
Abstract class to encapsulate the action of a discrete operator on vectors, matrices,...
Definition: IdentityOperatorContext.h:53
An class template to encapsulate a MultiVector. A MultiVector is a collection of vectors belonging t...
Definition: MultiVector.h:134
Abstract class to encapsulate the action of a discrete operator on vectors, matrices,...
Definition: OperatorContext.h:51
Definition: OrthonormalizationFunctions.h:47
blasLapack::real_type< ValueType > RealType
Definition: OrthonormalizationFunctions.h:51
blasLapack::scalar_type< ValueTypeOperator, ValueTypeOperand > ValueType
Definition: OrthonormalizationFunctions.h:50
static OrthonormalizationError ModifiedGramSchmidt(MultiVector< ValueTypeOperand, memorySpace > &X, MultiVector< ValueType, memorySpace > &orthogonalizedX, const OpContext &B=IdentityOperatorContext< ValueTypeOperator, ValueTypeOperand, memorySpace >())
Definition: OrthonormalizationFunctions.t.cpp:574
~OrthonormalizationFunctions()=default
Default Destructor.
static OrthonormalizationError CholeskyGramSchmidt(MultiVector< ValueTypeOperand, memorySpace > &X, MultiVector< ValueType, memorySpace > &orthogonalizedX, const OpContext &B=IdentityOperatorContext< ValueTypeOperator, ValueTypeOperand, memorySpace >())
Definition: OrthonormalizationFunctions.t.cpp:127
static OrthonormalizationError MultipassLowdin(MultiVector< ValueTypeOperand, memorySpace > &X, size_type maxPass, RealType shiftTolerance, RealType identityTolerance, MultiVector< ValueType, memorySpace > &orthogonalizedX, const OpContext &B=IdentityOperatorContext< ValueTypeOperator, ValueTypeOperand, memorySpace >())
Definition: OrthonormalizationFunctions.t.cpp:290
blas::scalar_type< ValueType1, ValueType2 > scalar_type
Definition: BlasLapackTypedef.h:70
blas::real_type< ValueType > real_type
Definition: BlasLapackTypedef.h:64
MemorySpace
Definition: MemorySpaceType.h:37
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
unsigned int size_type
Definition: TypeConfig.h:8
Definition: LinearAlgebraTypes.h:134