Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MVmultiply.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 
37 template <typename LinearOperator,
38  typename MatrixOrVector1,
39  typename MatrixOrVector2>
40 void MVmultiply(LinearOperator& A,
41  MatrixOrVector1& B,
42  MatrixOrVector2& C);
43 
44 template <typename LinearOperator,
45  typename MatrixOrVector1,
46  typename MatrixOrVector2>
47 void OVmultiply(LinearOperator& A,
48  MatrixOrVector1& B,
49  MatrixOrVector2& C);
50 
51 
52 template <typename MatrixOrVector,
53  typename MatrixOrVector1,
54  typename MatrixOrVector2>
55 void MVdot(const MatrixOrVector& A,
56  const MatrixOrVector1& B,
57  MatrixOrVector2& C);
58 
59 template <typename ValueType,
60  typename MatrixOrVector1,
61  typename MatrixOrVector2>
62 void axpby_array(const ValueType& a,
63  const MatrixOrVector1& x,
64  const ValueType& b,
65  const MatrixOrVector1& y,
66  MatrixOrVector2& z);
67 
68 
69 
73 } // end namespace cusp
74 
75 #include <cusp/detail/MVmultiply.inl>
void MVmultiply(LinearOperator &A, MatrixOrVector1 &B, MatrixOrVector2 &C)
void MVdot(const MatrixOrVector &A, const MatrixOrVector1 &B, MatrixOrVector2 &C)
void OVmultiply(LinearOperator &A, MatrixOrVector1 &B, MatrixOrVector2 &C)
void axpby_array(const ValueType &a, const MatrixOrVector1 &x, const ValueType &b, const MatrixOrVector1 &y, MatrixOrVector2 &z)