toon-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Toon-members] TooN/internal operators.hh


From: Damian Eads
Subject: [Toon-members] TooN/internal operators.hh
Date: Fri, 05 Feb 2010 02:19:34 +0000

CVSROOT:        /sources/toon
Module name:    TooN
Changes by:     Damian Eads <eads>      10/02/05 02:19:34

Modified files:
        internal       : operators.hh 

Log message:
        For some reason, my Mac OS X defines numeric constants B0 and P0, so 
I've renamed these template arguments Ba0 and Pr0 to prevent a collision.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/internal/operators.hh?cvsroot=toon&r1=1.47&r2=1.48

Patches:
Index: operators.hh
===================================================================
RCS file: /sources/toon/TooN/internal/operators.hh,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -b -r1.47 -r1.48
--- operators.hh        18 Jan 2010 12:15:31 -0000      1.47
+++ operators.hh        5 Feb 2010 02:19:34 -0000       1.48
@@ -118,8 +118,8 @@
 
        Operator(const Vector<S1, P1, B1> & lhs_in, const Vector<S2, P2, B2> & 
rhs_in) : lhs(lhs_in), rhs(rhs_in) {}
 
-       template<int S0, typename P0, typename B0>
-       void eval(Vector<S0, P0, B0>& res) const
+       template<int S0, typename P0, typename Ba0>
+       void eval(Vector<S0, P0, Ba0>& res) const
        {
                for(int i=0; i < res.size(); ++i)
                        res[i] = Op::template op<P0,P1, P2>(lhs[i],rhs[i]);
@@ -227,8 +227,8 @@
 
        Operator(const Matrix<R1, C1, P1, B1> & lhs_in, const Matrix<R2, C2, 
P2, B2> & rhs_in) : lhs(lhs_in), rhs(rhs_in) {}
 
-       template<int R0, int C0, typename P0, typename B0>
-       void eval(Matrix<R0, C0, P0, B0>& res) const
+       template<int R0, int C0, typename P0, typename Ba0>
+       void eval(Matrix<R0, C0, P0, Ba0>& res) const
        {
                for(int r=0; r < res.num_rows(); ++r){
                        for(int c=0; c < res.num_cols(); ++c){
@@ -288,8 +288,8 @@
 
        Operator(const Matrix<R1, C1, P1, B1> & lhs_in, const Matrix<R2, C2, 
P2, B2> & rhs_in) : lhs(lhs_in), rhs(rhs_in) {}
 
-       template<int R0, int C0, typename P0, typename B0>
-       void eval(Matrix<R0, C0, P0, B0>& res) const
+       template<int R0, int C0, typename P0, typename Ba0>
+       void eval(Matrix<R0, C0, P0, Ba0>& res) const
        {
 
                for(int r=0; r < res.num_rows(); ++r) {
@@ -480,8 +480,8 @@
 
        Operator(const Vector<Size,P1,B1>& v, const P2& s) : lhs(v), rhs(s) {}
                
-       template<int S0, typename P0, typename B0>
-       void eval(Vector<S0,P0,B0>& v) const {
+       template<int S0, typename P0, typename Ba0>
+       void eval(Vector<S0,P0,Ba0>& v) const {
                for(int i=0; i<v.size(); i++){
                        v[i]= Op::template op<P0,P1,P2> (lhs[i],rhs);
                }
@@ -508,8 +508,8 @@
 
        Operator(const P2& s, const Vector<Size,P1,B1>& v) : lhs(s), rhs(v) {}
                
-       template<int S0, typename P0, typename B0>
-       void eval(Vector<S0,P0,B0>& v) const {
+       template<int S0, typename P0, typename Ba0>
+       void eval(Vector<S0,P0,Ba0>& v) const {
                for(int i=0; i<v.size(); i++){
                        v[i]= Op::template op<P0,P2,P1> (lhs,rhs[i]);
                }
@@ -535,8 +535,8 @@
 
        Operator(const Matrix<R,C,P1,B1>& m, const P2& s) : lhs(m), rhs(s) {}
                
-       template<int R0, int C0, typename P0, typename B0>
-       void eval(Matrix<R0,C0,P0,B0>& m) const {
+       template<int R0, int C0, typename P0, typename Ba0>
+       void eval(Matrix<R0,C0,P0,Ba0>& m) const {
                for(int r=0; r<m.num_rows(); r++){
                        for(int c=0; c<m.num_cols(); c++){
                                m(r,c)= Op::template op<P0,P1,P2> 
(lhs(r,c),rhs);
@@ -568,8 +568,8 @@
 
        Operator( const P2& s,const Matrix<R,C,P1,B1>& m) : lhs(s), rhs(m) {}
                
-       template<int R0, int C0, typename P0, typename B0>
-       void eval(Matrix<R0,C0,P0,B0>& m) const {
+       template<int R0, int C0, typename P0, typename Ba0>
+       void eval(Matrix<R0,C0,P0,Ba0>& m) const {
                for(int r=0; r<m.num_rows(); r++){
                        for(int c=0; c<m.num_cols(); c++){
                                m(r,c)= Op::template op<P0,P1,P2> 
(lhs,rhs(r,c));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]