Mercurial > hg > octave-lyh
comparison src/ov-mapper.cc @ 6823:9fddcc586065
[project @ 2007-08-24 08:27:27 by dbateman]
author | dbateman |
---|---|
date | Fri, 24 Aug 2007 08:27:29 +0000 |
parents | ace8d8d26933 |
children | 2d326000e09b |
comparison
equal
deleted
inserted
replaced
6822:5c4702203cc4 | 6823:9fddcc586065 |
---|---|
239 retval = d_b_map_fcn (d); | 239 retval = d_b_map_fcn (d); |
240 else | 240 else |
241 error ("%s: unable to handle real arguments", | 241 error ("%s: unable to handle real arguments", |
242 name().c_str ()); | 242 name().c_str ()); |
243 } | 243 } |
244 else if (arg.class_name () == "sparse") | 244 else if (arg.is_sparse_type ()) |
245 { | 245 { |
246 const SparseMatrix m = arg.sparse_matrix_value (); | 246 const SparseMatrix m = arg.sparse_matrix_value (); |
247 | 247 |
248 if (error_state) | 248 if (error_state) |
249 return retval; | 249 return retval; |
307 retval = c_b_map_fcn (c); | 307 retval = c_b_map_fcn (c); |
308 else | 308 else |
309 error ("%s: unable to handle complex arguments", | 309 error ("%s: unable to handle complex arguments", |
310 name().c_str ()); | 310 name().c_str ()); |
311 } | 311 } |
312 else if (arg.class_name () == "sparse") | 312 else if (arg.is_sparse_type ()) |
313 { | 313 { |
314 SparseComplexMatrix cm = arg.sparse_complex_matrix_value (); | 314 SparseComplexMatrix cm = arg.sparse_complex_matrix_value (); |
315 | 315 |
316 if (error_state) | 316 if (error_state) |
317 return retval; | 317 return retval; |