recent work

View: New views
1 Messages — Rating Filter:   Alert me  

recent work

by Karl Meerbergen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I was very motivated last week to do some developments in GLAS since my
colleague Yvette is working on algorithms for structured matrices
(semi-separable, e.g.).

Currently, the following is available in GLAS:

- vector algorithms:
  vector + vector
  vector - vector
  scalar * vector
  vector / scalar
  dot( vector, vector )
  norm_2( vector )

- assignments:
  vector = vector expression
  vector += vector expression
  vector -= vector expression
  scalar = norm_2( vector expression )
  scalar = dot( vector expression, vector expression )
 
- matrix algorithms:
  matrix * vector
  trans( matrix )
  column( matrix )
  column_range( matrix )

- containers:
  dense_vector<T>
  dense_matrix<T, Orientation>

- the toolbox la contains implementations for operators; +, -, *, +=, -=

Implementation is for the glas backend only at this stage. The
implementation of the BLAS backend will be the next step for performing
timing comparisons. All is for dense vectors currently.

The organisation of the include files can be improved, as well as the
doc html pages. These are not complete yet. The vector algorithms are
currently subdivided into two classes.
1) At assignment, one loop evaluates the whole expression
e.g. w = x + y + z is evaluated in one loop
2) At assignment, the expression is evaluated term by term, e.g.
w = x + y + z is split up as
w = x ; w += y ; w += z ;

norm_2 can only be computed for vector expressions that can be evaluated
in a single loop, otherwise you need a temporary vector to store
intermediate results, which glas does not create automatically. A
similar restriction holds for dot().

The coming weeks, I will do some tidying up, documentation and
reorganisation of the include files.
I am trying to keep the page
http://www.cs.kuleuven.be/~karlm/glas/
up to date as well.

Have a nice day,

Karl

[Karl.Meerbergen.vcf]

begin:vcard
fn:Karl Meerbergen
n:Meerbergen;Karl
org:K.U. Leuven;Department of Computer Science
adr:Room 02.014;;Celestijnenlaan 200A;Heverlee (Leuven);;B-3001;Belgium
email;internet:Karl.Meerbergen@...
tel;work:+32 16 32 79 59
tel;fax:+32 16 32 79 96
tel;cell:+32 474 26 66 59
note:http://www.kuleuven.be/cwis/email_disclaimer.htm
url:http://www.cs.kuleuven.be/~karlm
version:2.1
end:vcard



_______________________________________________
glas mailing list
glas@...
http://lists.boost.org/mailman/listinfo.cgi/glas