Mercurial > octave-nkf
comparison liboctave/fDiagMatrix.cc @ 9550:3d6a9aea2aea
refactor binary & bool ops in liboctave
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 19 Aug 2009 22:55:15 +0200 |
parents | eb63fbe60fab |
children | a9b37bae1802 |
comparison
equal
deleted
inserted
replaced
9549:ed34b1da0e26 | 9550:3d6a9aea2aea |
---|---|
40 FloatDiagMatrix::operator == (const FloatDiagMatrix& a) const | 40 FloatDiagMatrix::operator == (const FloatDiagMatrix& a) const |
41 { | 41 { |
42 if (rows () != a.rows () || cols () != a.cols ()) | 42 if (rows () != a.rows () || cols () != a.cols ()) |
43 return 0; | 43 return 0; |
44 | 44 |
45 return mx_inline_equal (data (), a.data (), length ()); | 45 return mx_inline_equal (length (), data (), a.data ()); |
46 } | 46 } |
47 | 47 |
48 bool | 48 bool |
49 FloatDiagMatrix::operator != (const FloatDiagMatrix& a) const | 49 FloatDiagMatrix::operator != (const FloatDiagMatrix& a) const |
50 { | 50 { |