# HG changeset patch # User jwe # Date 753357986 0 # Node ID c4027b057786b7f80002cfe8e357c286d7f44604 # Parent 3af2558b9e66506dd8aa12fe47996f71d4fc4869 [project @ 1993-11-15 10:03:31 by jwe] diff -r 3af2558b9e66 -r c4027b057786 src/tc-extras.cc --- a/src/tc-extras.cc Mon Nov 15 08:56:03 1993 +0000 +++ b/src/tc-extras.cc Mon Nov 15 10:06:26 1993 +0000 @@ -52,7 +52,10 @@ int nr = a.rows (); int nc = a.columns (); if (nr != b.rows () || nc != b.columns ()) - FAIL; + { + error ("two-arg max expecting args of same size"); + return Matrix (); + } Matrix result (nr, nc); @@ -73,7 +76,10 @@ int nr = a.rows (); int nc = a.columns (); if (nr != b.rows () || nc != b.columns ()) - FAIL; + { + error ("two-arg max expecting args of same size"); + return ComplexMatrix (); + } ComplexMatrix result (nr, nc); @@ -97,7 +103,10 @@ int nr = a.rows (); int nc = a.columns (); if (nr != b.rows () || nc != b.columns ()) - FAIL; + { + error ("two-arg min expecting args of same size"); + return Matrix (); + } Matrix result (nr, nc); @@ -118,7 +127,10 @@ int nr = a.rows (); int nc = a.columns (); if (nr != b.rows () || nc != b.columns ()) - FAIL; + { + error ("two-arg min expecting args of same size"); + return ComplexMatrix (); + } ComplexMatrix result (nr, nc);