QuoteOriginally posted by: outrunQuoteOriginally posted by: CuchulainnQuoteOriginally posted by: outruncan't you stuff a tenor in a uBlas matrix for now? That would have the benefit for having just dependencies on boost, Altas backend etc.Maybe we can quickly write a run-time dimensional version of this old snippet I used to use myself..It would be great if uBlas would get extended with tensors some day.What you did is similar to what Boost multiarray MA does.1. MA allows slices and ranges which is nice.2. MA is STL-compatible? If not then home-grown STL algos will be needed... What we need is MA -> uBLAS projections. Bingo.I though MA uses nested containers, inefficient, in directions. UBlas uses linear mem and structures layedout in it.Yes, MA is a wee bit slow. But for batch post-processing OK. In general, FAST = O(1/FLEXIBLE) .. basic law of CS.
Last edited by Cuchulainn
on February 7th, 2012, 11:00 pm, edited 1 time in total.