octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sqrtm test failure


From: Marco atzeri
Subject: sqrtm test failure
Date: Fri, 29 Jul 2011 12:10:09 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0

on src/DLD-FUNCTIONS/sqrtm.cc
the following test is failing

%!assert (isnan (sqrtm ([0 1; 0 0])))

but it is not clear to me, what is the expected results
as isnan applied to a matrix produces a matrix

> sqrtm ([0 1; 0 0])
warning: sqrtm: matrix is singular, may not have a square root
ans =

     0   NaN
     0   NaN


> isnan(sqrtm ([0 1; 0 0]))
warning: sqrtm: matrix is singular, may not have a square root
ans =

   0   1
   0   1


Regards
Marco


reply via email to

[Prev in Thread] Current Thread [Next in Thread]