Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!bjaspan From: bjaspan@athena.mit.edu (Barr3y Jaspan) Newsgroups: comp.lang.c++ Subject: Simple patch to my Matrix C++ class Message-ID: <1991Apr9.223312.19491@athena.mit.edu> Date: 9 Apr 91 22:33:12 GMT Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology Lines: 19 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