
26 Aug
2009
26 Aug
'09
4:29 p.m.
a thought about operations tweaks one may want to tile and/or partially unroll operation loops but since such thing characterize operations rather than objects themselves it is wrong to tag the objects with such info consider matrix<double, tile<3, 3> > tiled1; //the first one //... matrix<double, tile<3, 1> > tiled2; //far from the first one //... matrix<double> result = tiled1*tiled2; //what tiling would occure? instead one can tag an operation itself (when needed) for exmple one could write like matrix<double> result = (m1*m2, tile<3, 3>()); and even m = (m1*m2, tile<3, 3>())*m3; //'m1*m2' is tiled; the latter is not even this primitive form is much more expressive -- Pavel