Fork me on GitHub
 All Classes Files Functions Variables Groups Pages
bicgstab_m.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 <cusp/execution_policy.h>
26 
27 namespace cusp
28 {
29 namespace krylov
30 {
37 /* \cond */
38 template <typename DerivedPolicy, class LinearOperator,
39  class VectorType1, class VectorType2, class VectorType3>
40 void bicgstab_m(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
41  LinearOperator& A,
42  VectorType1& x, VectorType2& b, VectorType3& sigma);
43 
47 template <class LinearOperator,
48  class VectorType1, class VectorType2, class VectorType3>
49 typename thrust::detail::enable_if_convertible<typename LinearOperator::format,cusp::known_format>::type
50 bicgstab_m(LinearOperator& A,
51  VectorType1& x, VectorType2& b, VectorType3& sigma);
52 
53 template <typename DerivedPolicy,
54  class LinearOperator,
55  class VectorType1, class VectorType2, class VectorType3,
56  class Monitor>
57 void bicgstab_m(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
58  LinearOperator& A,
59  VectorType1& x, VectorType2& b, VectorType3& sigma,
60  Monitor& monitor);
61 /* \endcond */
62 
135 template <class LinearOperator,
136  class VectorType1, class VectorType2, class VectorType3,
137  class Monitor>
138 typename thrust::detail::enable_if_convertible<typename LinearOperator::format,cusp::known_format>::type
139 bicgstab_m(LinearOperator& A,
140  VectorType1& x, VectorType2& b, VectorType3& sigma,
141  Monitor& monitor);
145 } // end namespace krylov
146 } // end namespace cusp
147 
148 #include<cusp/krylov/detail/bicgstab_m.inl>
149 
thrust::detail::enable_if_convertible< typename LinearOperator::format, cusp::known_format >::type bicgstab_m(LinearOperator &A, VectorType1 &x, VectorType2 &b, VectorType3 &sigma, Monitor &monitor)
Multi-mass Biconjugate Gradient stabilized method.