-
Notifications
You must be signed in to change notification settings - Fork 51
Fixed MulVec code for Transpose case. #92
Conversation
The previous code did not properly account for the shapes of the vectors. This makes the proper checks
Question: It is surprising to me that these tests pass. In the final test, an incorrectly-sized vector is being used as the receiver, but because it's equal to one of the input arguments, no panic occurs. I had followed the style of Dense, but now that I fully grok the consequences, couple of questions. If I'm reading the code right, these apply to both MulVec and Dense.
|
Fixed code comments. |
LGTM |
On Jan 18, 2015 1:53 PM, "Dan Kortschak" notifications@github.com wrote:
We can tell from the capacities, right?
|
A combination of the capCol and mat.Stride will tell if it's a view restricted by width, but I don't see a way to tell if it's restricted by height with the current information we keep. |
Fixed MulVec code for Transpose case.
The previous code did not properly account for the shapes of the vectors. This makes the proper checks