cheshirekow  v0.1.0
RValue.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 Josh Bialkowski (jbialk@mit.edu)
3  *
4  * This file is part of mpblocks.
5  *
6  * mpblocks is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * mpblocks is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with mpblocks. If not, see <http://www.gnu.org/licenses/>.
18  */
27 #ifndef MPBLOCKS_CUDA_POLYNOMIAL_RVALUE_H_
28 #define MPBLOCKS_CUDA_POLYNOMIAL_RVALUE_H_
29 
30 namespace mpblocks {
31 namespace cuda {
32 namespace polynomial {
33 
34 template< int idx, typename Scalar, class Exp1 >
36 Scalar get( const Exp1& );
37 
39 template <class Scalar, class Exp, class Spec>
40 struct RValue
41 {};
42 
43 
44 template <typename Scalar, class Exp, class Spec>
47 {
48  return exp;
49 }
50 
51 
52 
53 
54 
55 } // polynomial
56 } // cuda
57 } // mpblocks
58 
59 
60 
61 
62 
63 #endif // MATRIXEXPRESSION_H_
__host__ __device__ RValue< Scalar, Exp, Spec > & rvalue(RValue< Scalar, Exp, Spec > &exp)
Definition: RValue.h:46
expression template for rvalues
Definition: RValue.h:40
#define __device__
Definition: fakecuda.h:34
#define __host__
Definition: fakecuda.h:37