Mercurial > hg > octave-nkf
changeset 17704:7903ae3b657d
convn: fix incorrect tests
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Sun, 20 Oct 2013 16:41:54 +0100 |
parents | 4d8ddc44d1f2 |
children | 292319fb7fcc |
files | libinterp/corefcn/conv2.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/conv2.cc +++ b/libinterp/corefcn/conv2.cc @@ -432,7 +432,7 @@ %! b = rand (3, 3, 3); %! c = convn (a, b, "full"); %!assert (convn (a, b, "same"), c(2:11,2:11,2)); -%!assert (convn (a, b, "valid"), []); +%!assert (convn (a, b, "valid"), c(3:10,3:10,3:2)); # a 7x7x0 matrix %! %! ## test multiple different number of dimensions, with odd %! ## and even numbers @@ -440,7 +440,7 @@ %! b = rand (4, 3, 2, 3); %! c = convn (a, b, "full"); %!assert (convn (a, b, "same"), c(3:12,2:16,2:8,2:9,:)) -%!assert (convn (a, b, "valid"), c(4:6,3:15,2:7,3:8,:)); +%!assert (convn (a, b, "valid"), c(4:10,3:15,2:7,3:8,:)); %!shared a, b, c %! a = reshape (floor (magic (16) /10), [4 8 4 2]);