[Dune] [#395] please add "FieldMatrix += Scalar" operator

Dune dune at dune-project.org
Mon May 19 19:11:39 CEST 2008


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Jö Fahlke (joe) 

Attached to Project - Dune
Summary - please add "FieldMatrix += Scalar" operator
Task Type - Feature Request
Category - Common
Status - New
Assigned To - 
Operating System - Unspecified / All
Severity - Low
Priority - Normal
Reported Version - SVN
Due in Version - Undecided
Due Date - Undecided
Details - The operator should add unity times the scalar to the matrix.  For example adding the unit matrix to matrix A then becomes "A += 1".  I currently use the follwing implementation:

  template<typename K, int n>
  FieldMatrix<K, n, n> &
  operator+=(FieldMatrix<K, n, n> &M, K scalar)
  {
    for(int i = 0; i < n; ++i)
      M[i][i] += scalar;
    return M;
  }


More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=395

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list