Changeset 996 in Sophya


Ignore:
Timestamp:
May 2, 2000, 5:49:29 PM (25 years ago)
Author:
ansari
Message:

bug mise a zero elts hors diag SetIdentity cmv 2/5/00

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/TArray/tmatrix.cc

    r976 r996  
    1 // $Id: tmatrix.cc,v 1.11 2000-04-27 17:53:51 ansari Exp $
     1// $Id: tmatrix.cc,v 1.12 2000-05-02 15:49:29 ansari Exp $
    22//                         C.Magneville          04/99
    33#include "machdefs.h"
     
    267267  if (NRows() != NCols())
    268268    throw SzMismatchError("TMatrix::operator= (IdentityMatrix) NRows() != NCols()") ;
     269  *this = (T) 0;
    269270  for(uint_4 i=0; i<NRows(); i++) (*this)(i,i) = diag;
    270271
Note: See TracChangeset for help on using the changeset viewer.