Boost logo

Glas :

Re: [glas] iterators, containers, ...

From: Karl Meerbergen (Karl.Meerbergen_at_[hidden])
Date: 2005-09-09 03:49:13


We have implemented norm_1(v) and dot(v,w) functions for dense and sparse
vector containers with value_type double. Initial timings are encouraging:
(benchmarks in glas/perf_bench/)

with gcc 3.4.3 on my acer travelmate 6000

for dot:

dense: 0.25-0.26 (glas), 0.21-0.22 (ublas)
sparse: 1.83-1.85 (glas), 5.66-5.71 (ublas)

with some basic loop unrolling by hand, i get
dense: 0.19-0.21 (glas)

for norm_1: (i did some loop unrolling)
dense: 0.12 (glas), 0.20 (ublas)
sparse: 0.12 (glas), 2.52 (ublas)