comparison liboctave/Array.cc @ 4822:d0aa1a59b73b ss-2-1-56

[project @ 2004-03-05 19:15:30 by jwe]
author jwe
date Fri, 05 Mar 2004 19:15:30 +0000
parents 22f024a25c4a
children bb82599f039f
comparison
equal deleted inserted replaced
4821:22f024a25c4a 4822:d0aa1a59b73b
1268 // Reshape to row vector for Matlab compatibility. 1268 // Reshape to row vector for Matlab compatibility.
1269 1269
1270 n = nr * nc; 1270 n = nr * nc;
1271 nr = 1; 1271 nr = 1;
1272 nc = n; 1272 nc = n;
1273
1274 if (liboctave_wfi_flag)
1275 {
1276 (*current_liboctave_warning_handler)
1277 ("A(idx) = []: expecting A to be row or column vector or scalar");
1278
1279 return;
1280 }
1281 } 1273 }
1282 1274
1283 if (idx_arg.is_colon_equiv (n, 1)) 1275 if (idx_arg.is_colon_equiv (n, 1))
1284 { 1276 {
1285 // Either A(:) = [] or A(idx) = [] with idx enumerating all 1277 // Either A(:) = [] or A(idx) = [] with idx enumerating all