Fork me on GitHub
 All Classes Files Functions Variables Groups Pages
lobpcg.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2009 NVIDIA Corporation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
21 #pragma once
22 
23 #include <cusp/detail/config.h>
24 
25 namespace cusp
26 {
27 namespace eigen
28 {
29 
36 /* \cond */
37 template <class LinearOperator,
38  class Vector>
39 void lobpcg(LinearOperator& A,
40  Vector& S,
41  Vector& X,
42  bool largest = true);
43 
44 template <class LinearOperator,
45  class Vector,
46  class Monitor>
47 void lobpcg(LinearOperator& A,
48  Vector& S,
49  Vector& X,
50  Monitor& monitor,
51  bool largest = true);
52 /* \endcond */
53 
123 template <class LinearOperator,
124  class Vector,
125  class Monitor,
126  class Preconditioner>
127 void lobpcg(LinearOperator& A,
128  Vector& S,
129  Vector& X,
130  Monitor& monitor,
131  Preconditioner& M,
132  bool largest = true);
133 
137 } // end namespace eigen
138 } // end namespace cusp
139 
140 #include <cusp/eigen/detail/lobpcg.inl>
void lobpcg(LinearOperator &A, Vector &S, Vector &X, Monitor &monitor, Preconditioner &M, bool largest=true)
LOBPCG method.