Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^2: Strassen's Algorithm for Matrix Multiplication

by cormanaz (Chaplain)
on Apr 13, 2013 at 15:26 UTC ( #1028528=note: print w/replies, xml ) Need Help??

in reply to Re: Strassen's Algorithm for Matrix Multiplication
in thread Strassen's Algorithm for Matrix Multiplication

My bad re missing link.

That seems to be what they've done in the MCE code example. What I don't get is this argument $tam (used both in perl and C). It says in the C code this has something to do with the "length of the matrix" but a matrix has two dimensions, so I'm not sure what they mean by "length." This is what made me think they were setting up some kind of fixed size test data.

  • Comment on Re^2: Strassen's Algorithm for Matrix Multiplication

Replies are listed 'Best First'.
Re^3: Strassen's Algorithm for Matrix Multiplication
by Corion (Pope) on Apr 13, 2013 at 16:07 UTC
    Strassen's algorithm only works for square matrices of a dimenstion that is a power of two I believe. At least a superficial scan of the Wikipedia article seems to confirm that. It also mentions padding non-square matrices.
      Right you are. That explains it, then. Thanks.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1028528]
[Corion]: Discipulus: Ah, so he's the one getting almost drowned all the time - waterpolo certainly is no sport for me ;)
[karlgoethebier]: Corion: buy enough coke and popcorn...
[marto]: Corion the cinema is a lot more expensive than I remember :P
Discipulus hates the smell of popcorn at cinemas..
[Corion]: marto: Yeah, most of the time, I prefer to watch stuff at home, where we can sit on the couch, order pizza and pause the movie. But for kids,...
[Corion]: ... I think the "cinema experience" is something of its own. But certainly, bringing an USB stick home is much easier ;-D

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2017-07-24 08:20 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (348 votes). Check out past polls.