CUSP
Loading...
Searching...
No Matches
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#include <cusp/detail/execution_policy.h>
25#include <cusp/detail/format.h>
26
27#include <thrust/detail/type_traits.h>
28
29namespace cusp
30{
31namespace krylov
32{
39/* \cond */
40template <typename DerivedPolicy, class LinearOperator,
41 class VectorType1, class VectorType2, class VectorType3>
42void bicgstab_m(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
43 LinearOperator& A,
44 VectorType1& x, VectorType2& b, VectorType3& sigma);
45
49template <class LinearOperator,
50 class VectorType1, class VectorType2, class VectorType3>
51thrust::detail::enable_if_convertible_t<typename LinearOperator::format,cusp::known_format>
52bicgstab_m(LinearOperator& A,
53 VectorType1& x, VectorType2& b, VectorType3& sigma);
54
55template <typename DerivedPolicy,
56 class LinearOperator,
57 class VectorType1, class VectorType2, class VectorType3,
58 class Monitor>
59void bicgstab_m(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
60 LinearOperator& A,
61 VectorType1& x, VectorType2& b, VectorType3& sigma,
62 Monitor& monitor);
63/* \endcond */
64
137template <class LinearOperator,
138 class VectorType1, class VectorType2, class VectorType3,
139 class Monitor>
140thrust::detail::enable_if_convertible_t<typename LinearOperator::format,cusp::known_format>
141bicgstab_m(LinearOperator& A,
142 VectorType1& x, VectorType2& b, VectorType3& sigma,
143 Monitor& monitor);
147} // end namespace krylov
148} // end namespace cusp
149
150#include<cusp/krylov/detail/bicgstab_m.inl>
151
Implements standard convergence criteria and reporting for iterative solvers.
Definition monitor.h:102
thrust::detail::enable_if_convertible_t< typename LinearOperator::format, cusp::known_format > bicgstab_m(LinearOperator &A, VectorType1 &x, VectorType2 &b, VectorType3 &sigma, Monitor &monitor)
Multi-mass Biconjugate Gradient stabilized method.