[Jprogramming] matrix multiplication (modeling in CUDA for a GPU)
Raul Miller
rauldmiller at gmail.com
Tue Nov 8 05:07:59 HKT 2011
The shapes inside the boxes are not the problem.
The shapes of the boxes themselves are the problem.
tA2 =: (2 6,:2 6)<;._3 A
tB2 =: (6 2,:6 2)<;._3 B
tA2 ;&.> tB2
|length error
$tA2
3 1
$tB2
1 3
In other words 3 1 is not a prefix of 1 3, and 1 3 is not a prefix of 3 1.
--
Raul
On Mon, Nov 7, 2011 at 3:09 PM, Jan Jacobs <jan.wm.jacobs1 at gmail.com> wrote:
> ls,
> for educational purposes I want to breakdown a CUDA matrix
> multiplication in smaller parts.
> What I do not understand is that for B=:A =: i.6 6
> tA =: (2 2,:2 2)<;._3 A
> tB =: (2 2,:2 2)<;._3 B
> tA (+/ . *)&.> tB
> works fine, but
> tA =: (2 6,:2 6)<;._3 A
> tB =: (6 2,:6 2)<;._3 B
> tA (+/ . *)&.> tB
> does not:
> |length error
> | tA (+/ .*)"1&.>tB
>
> The shapes of the various boxes are as expected.
> What is going wrong?
> Thanks in advance for the help.
> Jan.
>
>
> --
> Jan Jacobs
> Esdoornstraat 33
> 5995AN Kessel
> W: www.sommaps.com
> T: +31 77 462 1887
> M: +31 6 23 82 55 21
> E: jan.jacobs at sommaps.com
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
More information about the Programming
mailing list