@@ -308,12 +308,12 @@ AFAPI array idft(const array& in);
308308
309309 \param[in] signal is the input signal
310310 \param[in] filter is the signal that shall be flipped for the convolution operation
311- \param[in] expand indicates if the convolution should be expanded or not(where output size equals input).
311+ \param[in] mode indicates if the convolution should be expanded or not(where output size equals input).
312312 \return the convolved array
313313
314314 \ingroup signal_func_convolve
315315 */
316- AFAPI array convolve (const array& signal, const array& filter, bool expand= false );
316+ AFAPI array convolve (const array& signal, const array& filter, const convMode mode=AF_CONV_DEFAULT );
317317
318318/* *
319319 C++ Interface for separable convolution on two dimensional data
@@ -323,15 +323,15 @@ AFAPI array convolve(const array& signal, const array& filter, bool expand=false
323323 \param[in] signal is the input signal
324324 \param[in] col_filter is the signal that shall be along coloumns
325325 \param[in] row_filter is the signal that shall be along rows
326- \param[in] expand indicates if the convolution should be expanded or not(where output size equals input).
326+ \param[in] mode indicates if the convolution should be expanded or not(where output size equals input).
327327 \return the convolved array
328328
329329 \note Separable convolution only supports two(ONE-to-ONE and MANY-to-ONE) batch modes from the ones described
330330 in the detailed description section.
331331
332332 \ingroup signal_func_convolve
333333 */
334- AFAPI array convolve (const array& col_filter, const array& row_filter, const array& signal, bool expand= false );
334+ AFAPI array convolve (const array& col_filter, const array& row_filter, const array& signal, const convMode mode=AF_CONV_DEFAULT );
335335
336336/* *
337337 C++ Interface for convolution on one dimensional data
@@ -340,12 +340,12 @@ AFAPI array convolve(const array& col_filter, const array& row_filter, const arr
340340
341341 \param[in] signal is the input signal
342342 \param[in] filter is the signal that shall be flipped for the convolution operation
343- \param[in] expand indicates if the convolution should be expanded or not(where output size equals input).
343+ \param[in] mode indicates if the convolution should be expanded or not(where output size equals input).
344344 \return the convolved array
345345
346346 \ingroup signal_func_convolve1
347347 */
348- AFAPI array convolve1 (const array& signal, const array& filter, bool expand= false );
348+ AFAPI array convolve1 (const array& signal, const array& filter, const convMode mode=AF_CONV_DEFAULT );
349349
350350/* *
351351 C++ Interface for convolution on two dimensional data
@@ -354,12 +354,12 @@ AFAPI array convolve1(const array& signal, const array& filter, bool expand=fals
354354
355355 \param[in] signal is the input signal
356356 \param[in] filter is the signal that shall be flipped for the convolution operation
357- \param[in] expand indicates if the convolution should be expanded or not(where output size equals input).
357+ \param[in] mode indicates if the convolution should be expanded or not(where output size equals input).
358358 \return the convolved array
359359
360360 \ingroup signal_func_convolve2
361361 */
362- AFAPI array convolve2 (const array& signal, const array& filter, bool expand= false );
362+ AFAPI array convolve2 (const array& signal, const array& filter, const convMode mode=AF_CONV_DEFAULT );
363363
364364/* *
365365 C++ Interface for convolution on three dimensional data
@@ -368,12 +368,12 @@ AFAPI array convolve2(const array& signal, const array& filter, bool expand=fals
368368
369369 \param[in] signal is the input signal
370370 \param[in] filter is the signal that shall be flipped for the convolution operation
371- \param[in] expand indicates if the convolution should be expanded or not(where output size equals input).
371+ \param[in] mode indicates if the convolution should be expanded or not(where output size equals input).
372372 \return the convolved array
373373
374374 \ingroup signal_func_convolve3
375375 */
376- AFAPI array convolve3 (const array& signal, const array& filter, bool expand= false );
376+ AFAPI array convolve3 (const array& signal, const array& filter, const convMode mode=AF_CONV_DEFAULT );
377377
378378/* *
379379 C++ Interface for FFT-based convolution any(one through three) dimensional data
@@ -384,43 +384,43 @@ AFAPI array convolve3(const array& signal, const array& filter, bool expand=fals
384384
385385 \ingroup signal_func_fftconvolve
386386 */
387- AFAPI array fftconvolve (const array& signal, const array& filter, const bool expand= false );
387+ AFAPI array fftconvolve (const array& signal, const array& filter, const convMode mode=AF_CONV_DEFAULT );
388388
389389/* *
390390 C++ Interface for convolution on one dimensional data
391391
392392 \param[in] signal is the input signal
393393 \param[in] filter is the signal that shall be used for the convolution operation
394- \param[in] expand indicates if the convolution should be expanded or not(where output size equals input).
394+ \param[in] mode indicates if the convolution should be expanded or not(where output size equals input).
395395 \return the convolved array
396396
397397 \ingroup signal_func_fftconvolve1
398398 */
399- AFAPI array fftconvolve1 (const array& signal, const array& filter, const bool expand= false );
399+ AFAPI array fftconvolve1 (const array& signal, const array& filter, const convMode mode=AF_CONV_DEFAULT );
400400
401401/* *
402402 C++ Interface for convolution on two dimensional data
403403
404404 \param[in] signal is the input signal
405405 \param[in] filter is the signal that shall be used for the convolution operation
406- \param[in] expand indicates if the convolution should be expanded or not(where output size equals input).
406+ \param[in] mode indicates if the convolution should be expanded or not(where output size equals input).
407407 \return the convolved array
408408
409409 \ingroup signal_func_fftconvolve2
410410 */
411- AFAPI array fftconvolve2 (const array& signal, const array& filter, const bool expand= false );
411+ AFAPI array fftconvolve2 (const array& signal, const array& filter, const convMode mode=AF_CONV_DEFAULT );
412412
413413/* *
414414 C++ Interface for convolution on three dimensional data
415415
416416 \param[in] signal is the input signal
417417 \param[in] filter is the signal that shall be used for the convolution operation
418- \param[in] expand indicates if the convolution should be expanded or not(where output size equals input).
418+ \param[in] mode indicates if the convolution should be expanded or not(where output size equals input).
419419 \return the convolved array
420420
421421 \ingroup signal_func_fftconvolve3
422422 */
423- AFAPI array fftconvolve3 (const array& signal, const array& filter, const bool expand= false );
423+ AFAPI array fftconvolve3 (const array& signal, const array& filter, const convMode mode=AF_CONV_DEFAULT );
424424
425425}
426426#endif
@@ -560,41 +560,41 @@ AFAPI af_err af_ifft3(af_array *out, af_array in, double norm_factor, dim_type o
560560 \param[out] out is convolved array
561561 \param[in] signal is the input signal
562562 \param[in] filter is the signal that shall be flipped for the convolution operation
563- \param[in] expand indicates if the convolution should be expanded or not(where output size equals input).
563+ \param[in] mode indicates if the convolution should be expanded or not(where output size equals input).
564564 \return \ref AF_SUCCESS if the convolution is successful,
565565 otherwise an appropriate error code is returned.
566566
567567 \ingroup signal_func_convolve1
568568 */
569- AFAPI af_err af_convolve1 (af_array *out, af_array signal, af_array filter, bool expand );
569+ AFAPI af_err af_convolve1 (af_array *out, af_array signal, af_array filter, const af_conv_mode mode );
570570
571571/* *
572572 C Interface for convolution on two dimensional data
573573
574574 \param[out] out is convolved array
575575 \param[in] signal is the input signal
576576 \param[in] filter is the signal that shall be flipped for the convolution operation
577- \param[in] expand indicates if the convolution should be expanded or not(where output size equals input).
577+ \param[in] mode indicates if the convolution should be expanded or not(where output size equals input).
578578 \return \ref AF_SUCCESS if the convolution is successful,
579579 otherwise an appropriate error code is returned.
580580
581581 \ingroup signal_func_convolve2
582582 */
583- AFAPI af_err af_convolve2 (af_array *out, af_array signal, af_array filter, bool expand );
583+ AFAPI af_err af_convolve2 (af_array *out, af_array signal, af_array filter, const af_conv_mode mode );
584584
585585/* *
586586 C Interface for convolution on three dimensional data
587587
588588 \param[out] out is convolved array
589589 \param[in] signal is the input signal
590590 \param[in] filter is the signal that shall be flipped for the convolution operation
591- \param[in] expand indicates if the convolution should be expanded or not(where output size equals input).
591+ \param[in] mode indicates if the convolution should be expanded or not(where output size equals input).
592592 \return \ref AF_SUCCESS if the convolution is successful,
593593 otherwise an appropriate error code is returned.
594594
595595 \ingroup signal_func_convolve3
596596 */
597- AFAPI af_err af_convolve3 (af_array *out, af_array signal, af_array filter, bool expand );
597+ AFAPI af_err af_convolve3 (af_array *out, af_array signal, af_array filter, const af_conv_mode mode );
598598
599599/* *
600600 C Interface for separable convolution on two dimensional data
@@ -603,7 +603,7 @@ AFAPI af_err af_convolve3(af_array *out, af_array signal, af_array filter, bool
603603 \param[in] col_filter is filter that has to be applied along the coloumns
604604 \param[in] row_filter is filter that has to be applied along the rows
605605 \param[in] signal is the input array
606- \param[in] expand indicates if the convolution should be expanded or not(where output size equals input).
606+ \param[in] mode indicates if the convolution should be expanded or not(where output size equals input).
607607 \return \ref AF_SUCCESS if the convolution is successful,
608608 otherwise an appropriate error code is returned.
609609
@@ -612,49 +612,49 @@ AFAPI af_err af_convolve3(af_array *out, af_array signal, af_array filter, bool
612612
613613 \ingroup signal_func_convolve
614614 */
615- AFAPI af_err af_convolve2_sep (af_array *out, af_array col_filter, af_array row_filter, af_array signal, bool expand );
615+ AFAPI af_err af_convolve2_sep (af_array *out, af_array col_filter, af_array row_filter, af_array signal, const af_conv_mode mode );
616616
617617/* *
618618 C Interface for FFT-based convolution on one dimensional data
619619
620620 \param[out] out is convolved array
621621 \param[in] signal is the input signal
622622 \param[in] filter is the signal that shall be used for the convolution operation
623- \param[in] expand indicates if the convolution should be expanded or not(where output size equals input).
623+ \param[in] mode indicates if the convolution should be expanded or not(where output size equals input).
624624 \return \ref AF_SUCCESS if the convolution is successful,
625625 otherwise an appropriate error code is returned.
626626
627627 \ingroup signal_func_fftconvolve1
628628 */
629- AFAPI af_err af_fftconvolve1 (af_array *out, af_array signal, af_array filter, const bool expand );
629+ AFAPI af_err af_fftconvolve1 (af_array *out, af_array signal, af_array filter, const af_conv_mode mode );
630630
631631/* *
632632 C Interface for FFT-based convolution on two dimensional data
633633
634634 \param[out] out is convolved array
635635 \param[in] signal is the input signal
636636 \param[in] filter is the signal that shall be used for the convolution operation
637- \param[in] expand indicates if the convolution should be expanded or not(where output size equals input).
637+ \param[in] mode indicates if the convolution should be expanded or not(where output size equals input).
638638 \return \ref AF_SUCCESS if the convolution is successful,
639639 otherwise an appropriate error code is returned.
640640
641641 \ingroup signal_func_fftconvolve2
642642 */
643- AFAPI af_err af_fftconvolve2 (af_array *out, af_array signal, af_array filter, const bool expand );
643+ AFAPI af_err af_fftconvolve2 (af_array *out, af_array signal, af_array filter, const af_conv_mode mode );
644644
645645/* *
646646 C Interface for FFT-based convolution on three dimensional data
647647
648648 \param[out] out is convolved array
649649 \param[in] signal is the input signal
650650 \param[in] filter is the signal that shall be used for the convolution operation
651- \param[in] expand indicates if the convolution should be expanded or not(where output size equals input).
651+ \param[in] mode indicates if the convolution should be expanded or not(where output size equals input).
652652 \return \ref AF_SUCCESS if the convolution is successful,
653653 otherwise an appropriate error code is returned.
654654
655655 \ingroup signal_func_fftconvolve3
656656 */
657- AFAPI af_err af_fftconvolve3 (af_array *out, af_array signal, af_array filter, const bool expand );
657+ AFAPI af_err af_fftconvolve3 (af_array *out, af_array signal, af_array filter, const af_conv_mode mode );
658658
659659#ifdef __cplusplus
660660}
0 commit comments