Local variables

A local variable for double is defined in the following way:

  double x;
  Local_var loc_x(&x);
Now, loc_x can be used in an expression. A local variable is helpful for the construction of a block Gauss-Seidel iteration. An example can be found here .
There exists also a local variable for int :
  int j;
  Local_int J(&j);   
These local variables are helpfull for iterations:

Example:

  ...
  int j;
  Local_int J(&j);   
  ...
  u =  u * 2.0 &
       For(J,0,4) (u  == u + 1.0 &
                   u  == u * 3.0);

Handbook

Last modified: Tue Feb 22 11:08:52 MET 2000