cheshirekow  v0.1.0
mktmp.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_LINALG2_MKTMP_H_
28 #define MPBLOCKS_CUDA_LINALG2_MKTMP_H_
29 
30 
31 
32 namespace mpblocks {
33 namespace cuda {
34 namespace linalg2 {
35 
36 
37 
39 template <typename Scalar, Size_t ROWS, Size_t COLS, class Exp >
40 __device__ __host__ inline
41 Matrix< Scalar, ROWS, COLS >
43 {
45 }
46 
47 
48 
49 
50 
51 } // linalg
52 } // cuda
53 } // mpblocks
54 
55 
56 
57 
58 #endif // MKTMP_H_
__device__ __host__ Matrix< Scalar, ROWS, COLS > mktmp(RValue< Scalar, ROWS, COLS, Exp > const &M)
forces the creation of a temporary
Definition: mktmp.h:42
expression template for rvalues
Definition: RValue.h:36
#define __device__
Definition: fakecuda.h:34
#define __host__
Definition: fakecuda.h:37