iRoCS Toolbox  1.1.0
lParallel.hh
Go to the documentation of this file.
1 /**************************************************************************
2  *
3  * Copyright (C) 2015 Kun Liu, Thorsten Falk
4  *
5  * Image Analysis Lab, University of Freiburg, Germany
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  *
21  **************************************************************************/
22 
23 /*
24  * lParallel.hh
25  *
26  * Created on: Nov 26, 2010
27  * Author: liu
28  */
29 
30 #ifndef LPARALLEL_HH_
31 #define LPARALLEL_HH_
32 
33 #ifdef HAVE_CONFIG_H
34 #include <config.hh>
35 #endif
36 
38 
39 template<typename Type, int Dim>
40 void pClear(blitz::Array<Type,Dim> &a);
41 
42 template<typename Type, int Dim>
43 void pClip(blitz::Array<Type,Dim> &a, Type L, Type H);
44 
45 template<typename Typea, typename Typeb, int Dim>
46 void pCopy(blitz::Array<Typea,Dim> const &a, blitz::Array<Typeb,Dim> &b);
47 
48 template<typename Typea, typename Typeb, typename Typec, int Dim>
49 void pMul(
50  blitz::Array<Typea,Dim> const &a, blitz::Array<Typeb,Dim> const &b,
51  blitz::Array<Typec,Dim> &c);
52 
53 template<typename Typea, typename Typeb, int Dim>
54 void
55 pScale(blitz::Array<Typea,Dim> &a, Typeb b);
56 
57 template<typename Typea, typename Typeb, int Dim>
58 void pMul(blitz::Array<Typea,Dim> &a, blitz::Array<Typeb,Dim> const &b);
59 
60 template<typename Typea, typename Typeb, int Dim>
61 void pABS(blitz::Array<Typea,Dim> const &a, blitz::Array<Typeb,Dim> &b);
62 
63 template<typename Typea, int Dim>
64 void pExp(blitz::Array<Typea,Dim> &a, double c);
65 
66 template<typename Typea, int Dim>
67 void pEigBack(
68  blitz::Array<blitz::TinyVector<Typea,Dim>,Dim> const &e,
69  blitz::Array<blitz::TinyVector<Typea,Dim>,Dim> const &v1,
70  blitz::Array<blitz::TinyVector<Typea,Dim>,Dim> const &v2,
71  blitz::Array<blitz::TinyVector<Typea,Dim>,Dim> const &v3,
72  blitz::Array<Typea,Dim> &a, blitz::Array<Typea,Dim> &workspace,
73  int d1, int d2);
74 
75 template<typename Typea, typename Typeb, int Dim>
76 void pPow(blitz::Array<Typea,Dim> &a, Typeb b);
77 
78 template<typename Typea, int Dim>
79 void pSquare(blitz::Array<Typea,Dim> &a);
80 
81 template<typename Typea, typename Typeb, int Dim>
82 void pAdd(blitz::Array<Typea,Dim> &a, blitz::Array<Typeb,Dim> const &b);
83 
84 #include "lParallel.icc"
85 
86 #endif /* LPARALLEL_HH_ */
void pSquare(blitz::Array< Typea, Dim > &a)
void pCopy(blitz::Array< Typea, Dim > const &a, blitz::Array< Typeb, Dim > &b)
void pEigBack(blitz::Array< blitz::TinyVector< Typea, Dim >, Dim > const &e, blitz::Array< blitz::TinyVector< Typea, Dim >, Dim > const &v1, blitz::Array< blitz::TinyVector< Typea, Dim >, Dim > const &v2, blitz::Array< blitz::TinyVector< Typea, Dim >, Dim > const &v3, blitz::Array< Typea, Dim > &a, blitz::Array< Typea, Dim > &workspace, int d1, int d2)
void pMul(blitz::Array< Typea, Dim > const &a, blitz::Array< Typeb, Dim > const &b, blitz::Array< Typec, Dim > &c)
void pClear(blitz::Array< Type, Dim > &a)
Query specific information about different data types.
void pClip(blitz::Array< Type, Dim > &a, Type L, Type H)
void pABS(blitz::Array< Typea, Dim > const &a, blitz::Array< Typeb, Dim > &b)
void pPow(blitz::Array< Typea, Dim > &a, Typeb b)
void pExp(blitz::Array< Typea, Dim > &a, double c)
void pAdd(blitz::Array< Typea, Dim > &a, blitz::Array< Typeb, Dim > const &b)
void pScale(blitz::Array< Typea, Dim > &a, Typeb b)