From: Albert S. <fu...@gm...> - 2006-02-23 12:40:51
|
Hello all Just to clear up any confusion: On 2/23/06, Albert Strasheim <fu...@gm...> wrote: > Here are some test cases that the current repmat should pass, but doesn't= : > > a =3D repmat(1, 1, 1) > assert_equal(a, 1) > a =3D repmat(array([1]), 1, 1) > assert_array_equal(a, array([1])) > a =3D repmat(array([1,2]), 2, 3) > assert_array_equal(a, array([[1,2,1,2,1,2], [1,2,1,2,1,2]])) > a =3D repmat(array([[1,2],[3,4]]), 2, 3) > assert_array_equal(a, array([[1,2,1,2,1,2], [3,4,3,4,3,4], > [1,2,1,2,1,2], [3,4,3,4,3,4]])) Only the first two tests fail. The other two pass. Presumably any test that uses a matrix with more than 2 dimensions will also fail. Regards Albert |