Mercurial > hg > octave-terminal
changeset 193:08a59c5cfa82
[project @ 1993-11-02 05:36:05 by jwe]
author | jwe |
---|---|
date | Tue, 02 Nov 1993 05:36:05 +0000 |
parents | 6259f4ed7285 |
children | 4f3364dcf450 |
files | liboctave/Matrix.h |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/Matrix.h +++ b/liboctave/Matrix.h @@ -1061,9 +1061,9 @@ inline DiagMatrix::~DiagMatrix (void) { delete [] data; data = 0; } -inline int DiagMatrix::rows (void) const { return len; } -inline int DiagMatrix::cols (void) const { return len; } -inline int DiagMatrix::columns (void) const { return len; } +inline int DiagMatrix::rows (void) const { return nr; } +inline int DiagMatrix::cols (void) const { return nc; } +inline int DiagMatrix::columns (void) const { return nc; } // Would be nice to be able to avoid compiler warning and make this // fail on assignment. @@ -1993,9 +1993,9 @@ inline ComplexDiagMatrix::~ComplexDiagMatrix (void) { delete [] data; data = 0; } -inline int ComplexDiagMatrix::rows (void) const { return len; } -inline int ComplexDiagMatrix::cols (void) const { return len; } -inline int ComplexDiagMatrix::columns (void) const { return len; } +inline int ComplexDiagMatrix::rows (void) const { return nr; } +inline int ComplexDiagMatrix::cols (void) const { return nc; } +inline int ComplexDiagMatrix::columns (void) const { return nc; } // Would be nice to be able to avoid compiler warning and make this // fail on assignment.