Mercurial > octave-nkf
view .hgsub @ 18145:a86d608c413c
Return empty matrix rather than issuing error when requested diagonal is out of range.
* data.cc: Add %!tests for new behavior.
* Array.cc (diag): Return 0x1 empty matrix when diagonal is out of range.
* DiagArray2.cc (extract_diag): Return 0x1 empty matrix when diagonal is out of
range.
* Sparse.cc (diag): Return 0x1 empty matrix when diagonal is out of range.
author | Marco Caliari <marco.caliari@univr.it> |
---|---|
date | Tue, 17 Dec 2013 09:00:34 -0800 |
parents | 44f30dcd87e0 |
children |