Mercurial > hg > octave-lyh
comparison src/data.cc @ 11570:57632dea2446
attempt better backward compatibility for Array constructors
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 19 Jan 2011 17:55:56 -0500 |
parents | fd0a3ac60b0e |
children | 7d6d8c1e471f |
comparison
equal
deleted
inserted
replaced
11569:7e9a111cae20 | 11570:57632dea2446 |
---|---|
1633 | 1633 |
1634 if (error_state) | 1634 if (error_state) |
1635 return retval; | 1635 return retval; |
1636 | 1636 |
1637 int dv_len = dv.length (); | 1637 int dv_len = dv.length (); |
1638 Array<octave_idx_type> ra_idx (dv_len, 1, 0); | 1638 Array<octave_idx_type> ra_idx (dim_vector (dv_len, 1), 0); |
1639 | 1639 |
1640 for (int j = 0; j < n_args; j++) | 1640 for (int j = 0; j < n_args; j++) |
1641 { | 1641 { |
1642 // Can't fast return here to skip empty matrices as something | 1642 // Can't fast return here to skip empty matrices as something |
1643 // like cat(1,[],single([])) must return an empty matrix of | 1643 // like cat(1,[],single([])) must return an empty matrix of |