[comp.lang.c++] Simple patch to my Matrix C++ class

bjaspan@athena.mit.edu (Barr3y Jaspan) (04/10/91)

A couple people found subtle problems with my C++ Matrix class, and when I
looked into it I found a really really stupid mistake.  Here's the patch.

*** /tmp/,RCSt1006842   Tue Apr  9 18:32:12 1991
--- Matrix.C    Tue Apr  9 18:31:47 1991
***************
*** 26,31 ****
--- 26,32 ----
  Matrix::Matrix(int m, int n)
  {
       Init(m, n);
+      bzero((char *) d, sizeof(double)*m*n);
  }

  Matrix::Matrix(int m, int n, double first ...)

-- 
Barr3y Jaspan, bjaspan@mit.edu
Watchmaker Computing