toon-members
[Top][All Lists]
Advanced

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

[Toon-members] TooN helpers.h


From: Gerhard Reitmayr
Subject: [Toon-members] TooN helpers.h
Date: Wed, 25 Mar 2009 22:03:45 +0000

CVSROOT:        /cvsroot/toon
Module name:    TooN
Changes by:     Gerhard Reitmayr <gerhard>      09/03/25 22:03:45

Modified files:
        .              : helpers.h 

Log message:
        added lost Fill again, cvs is your friend

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/helpers.h?cvsroot=toon&r1=1.31&r2=1.32

Patches:
Index: helpers.h
===================================================================
RCS file: /cvsroot/toon/TooN/helpers.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -b -r1.31 -r1.32
--- helpers.h   25 Mar 2009 21:33:37 -0000      1.31
+++ helpers.h   25 Mar 2009 22:03:45 -0000      1.32
@@ -80,6 +80,17 @@
                        }
                }
        };
+       
+       struct Fill
+       {
+               template<int R, int C, class P, class B, class Data> static 
void eval(Matrix<R, C, P, B>& m, const Data * data)
+               {
+                       for(int r=0; r < m.num_rows(); r++)
+                               for(int c=0; c < m.num_rows(); c++)
+                                       m[r][c] = *data++;
+               }
+       };
+
 }
 
 static Operator<Internal::Zero> Zero;




reply via email to

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