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 // @HEADER
2 // *****************************************************************************
3 // Stokhos Package
4 //
5 // Copyright 2009 NTESS and the Stokhos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 /*
11  * Copyright 2008-2009 NVIDIA Corporation
12  *
13  * Licensed under the Apache License, Version 2.0 (the "License");
14  * you may not use this file except in compliance with the License.
15  * You may obtain a copy of the License at
16  *
17  * http://www.apache.org/licenses/LICENSE-2.0
18  *
19  * Unless required by applicable law or agreed to in writing, software
20  * distributed under the License is distributed on an "AS IS" BASIS,
21  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22  * See the License for the specific language governing permissions and
23  * limitations under the License.
24  */
25 
30 #pragma once
31 
32 #include <cusp/detail/config.h>
33 
34 namespace cusp
35 {
36 namespace krylov
37 {
38 
39 
45 template <class LinearOperator,
46  class Vector>
47 void blockcg(LinearOperator& A,
48  Vector& x,
49  Vector& b);
50 
55 template <class LinearOperator,
56  class Vector,
57  class Monitor>
58 void blockcg(LinearOperator& A,
59  Vector& x,
60  Vector& b,
61  Monitor& monitor);
62 
63 
64 
72 template <class LinearOperator,
73  class Vector,
74  class Monitor,
75  class Preconditioner>
76 void blockcg(LinearOperator& A,
77  Vector& x,
78  Vector& b,
79  Monitor& monitor,
80  Preconditioner& M);
84 } // end namespace krylov
85 } // end namespace cusp
86 
87 #include <cusp/krylov/blockcg.inl>
void blockcg(LinearOperator &A, Vector &x, Vector &b)