Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
blockcg.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 krylov
28 {
29 
30 
36 template <class LinearOperator,
37  class Vector>
38 void blockcg(LinearOperator& A,
39  Vector& x,
40  Vector& b);
41 
46 template <class LinearOperator,
47  class Vector,
48  class Monitor>
49 void blockcg(LinearOperator& A,
50  Vector& x,
51  Vector& b,
52  Monitor& monitor);
53 
54 
55 
63 template <class LinearOperator,
64  class Vector,
65  class Monitor,
66  class Preconditioner>
67 void blockcg(LinearOperator& A,
68  Vector& x,
69  Vector& b,
70  Monitor& monitor,
71  Preconditioner& M);
75 } // end namespace krylov
76 } // end namespace cusp
77 
78 #include <cusp/krylov/blockcg.inl>
void blockcg(LinearOperator &A, Vector &x, Vector &b)