Fork me on GitHub
 All Classes Files Functions Variables Groups Pages
bicgstab.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2014 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 #include <thrust/execution_policy.h>
26 
27 namespace cusp
28 {
29 namespace krylov
30 {
37 /* \cond */
38 template <typename DerivedPolicy,
39  class LinearOperator,
40  class Vector>
41 void bicgstab(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
42  LinearOperator& A,
43  Vector& x,
44  Vector& b);
45 
50 template <class LinearOperator,
51  class Vector>
52 void bicgstab(LinearOperator& A,
53  Vector& x,
54  Vector& b);
55 
56 template <typename DerivedPolicy,
57  class LinearOperator,
58  class Vector,
59  class Monitor>
60 void bicgstab(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
61  LinearOperator& A,
62  Vector& x,
63  Vector& b,
64  Monitor& monitor);
65 
70 template <class LinearOperator,
71  class Vector,
72  class Monitor>
73 void bicgstab(LinearOperator& A,
74  Vector& x,
75  Vector& b,
76  Monitor& monitor);
77 
78 template <typename DerivedPolicy,
79  class LinearOperator,
80  class Vector,
81  class Monitor,
82  class Preconditioner>
83 void bicgstab(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
84  LinearOperator& A,
85  Vector& x,
86  Vector& b,
87  Monitor& monitor,
88  Preconditioner& M);
89 /* \endcond */
90 
151 template <class LinearOperator,
152  class Vector,
153  class Monitor,
154  class Preconditioner>
155 void bicgstab(LinearOperator& A,
156  Vector& x,
157  Vector& b,
158  Monitor& monitor,
159  Preconditioner& M);
163 } // end namespace krylov
164 } // end namespace cusp
165 
166 #include <cusp/krylov/detail/bicgstab.inl>
167 
void bicgstab(LinearOperator &A, Vector &x, Vector &b, Monitor &monitor, Preconditioner &M)
Biconjugate Gradient Stabilized method.