Mercurial > hg > octave-nkf
comparison liboctave/oct-convn.cc @ 11586:12df7854fa7c
strip trailing whitespace from source files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:24:59 -0500 |
parents | 57632dea2446 |
children | 72c96de7a403 |
comparison
equal
deleted
inserted
replaced
11585:1473d0cf86d2 | 11586:12df7854fa7c |
---|---|
32 #include "oct-convn.h" | 32 #include "oct-convn.h" |
33 #include "oct-locbuf.h" | 33 #include "oct-locbuf.h" |
34 | 34 |
35 // 2d convolution with a matrix kernel. | 35 // 2d convolution with a matrix kernel. |
36 template <class T, class R> | 36 template <class T, class R> |
37 static void | 37 static void |
38 convolve_2d (const T *a, octave_idx_type ma, octave_idx_type na, | 38 convolve_2d (const T *a, octave_idx_type ma, octave_idx_type na, |
39 const R *b, octave_idx_type mb, octave_idx_type nb, | 39 const R *b, octave_idx_type mb, octave_idx_type nb, |
40 T *c, bool inner); | 40 T *c, bool inner); |
41 | 41 |
42 // Forward instances to our Fortran implementations. | 42 // Forward instances to our Fortran implementations. |
99 c + ldc*(ja+jb), ccd, nd-1, inner); | 99 c + ldc*(ja+jb), ccd, nd-1, inner); |
100 } | 100 } |
101 } | 101 } |
102 } | 102 } |
103 | 103 |
104 // Arbitrary convolutor. | 104 // Arbitrary convolutor. |
105 // The 2nd array is assumed to be the smaller one. | 105 // The 2nd array is assumed to be the smaller one. |
106 template <class T, class R> | 106 template <class T, class R> |
107 static MArray<T> | 107 static MArray<T> |
108 convolve (const MArray<T>& a, const MArray<R>& b, | 108 convolve (const MArray<T>& a, const MArray<R>& b, |
109 convn_type ct) | 109 convn_type ct) |