Mercurial > hg > octave-lyh
changeset 226:c4027b057786
[project @ 1993-11-15 10:03:31 by jwe]
author | jwe |
---|---|
date | Mon, 15 Nov 1993 10:06:26 +0000 |
parents | 3af2558b9e66 |
children | 1a48a1b91489 |
files | src/tc-extras.cc |
diffstat | 1 files changed, 16 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/tc-extras.cc +++ b/src/tc-extras.cc @@ -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);