Mercurial > hg > octave-lyh
comparison src/DLD-FUNCTIONS/conv2.cc @ 5823:080c08b192d8
[project @ 2006-05-19 05:32:17 by jwe]
author | jwe |
---|---|
date | Fri, 19 May 2006 05:32:19 +0000 |
parents | 4fdc2515ebad |
children | 93c65f2a5668 |
comparison
equal
deleted
inserted
replaced
5822:4fdc2515ebad | 5823:080c08b192d8 |
---|---|
262 bool separable= false; | 262 bool separable= false; |
263 Shape ishape; | 263 Shape ishape; |
264 | 264 |
265 if (nargin < 2) | 265 if (nargin < 2) |
266 { | 266 { |
267 print_usage ("conv2"); | 267 print_usage (); |
268 return retval; | 268 return retval; |
269 } | 269 } |
270 else if (nargin == 3) | 270 else if (nargin == 3) |
271 { | 271 { |
272 if (args(2).is_string ()) | 272 if (args(2).is_string ()) |
287 else if (shape == "valid") | 287 else if (shape == "valid") |
288 ishape = SHAPE_VALID; | 288 ishape = SHAPE_VALID; |
289 else | 289 else |
290 { | 290 { |
291 error ("conv2: shape type not valid"); | 291 error ("conv2: shape type not valid"); |
292 print_usage ("conv2"); | 292 print_usage (); |
293 return retval; | 293 return retval; |
294 } | 294 } |
295 | 295 |
296 if (separable) | 296 if (separable) |
297 { | 297 { |
298 // If user requests separable, check first two params are vectors | 298 // If user requests separable, check first two params are vectors |
299 | 299 |
300 if (! (1 == args(0).rows () || 1 == args(0).columns ()) | 300 if (! (1 == args(0).rows () || 1 == args(0).columns ()) |
301 || ! (1 == args(1).rows () || 1 == args(1).columns ())) | 301 || ! (1 == args(1).rows () || 1 == args(1).columns ())) |
302 { | 302 { |
303 print_usage ("conv2"); | 303 print_usage (); |
304 return retval; | 304 return retval; |
305 } | 305 } |
306 | 306 |
307 if (args(0).is_complex_type () | 307 if (args(0).is_complex_type () |
308 || args(1).is_complex_type () | 308 || args(1).is_complex_type () |