Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    $\begingroup$ Rectangular matrices? For me, with mtx = RandomReal[{0, 1}, {100000, 1}]; ls = RandomReal[{0, 1}, {1}];, Times is faster than Dot. Varying the number of rows and columns results in a various results, although I have not systematically explored the behavior. $\endgroup$ Commented May 15, 2016 at 12:38
  • 1
    $\begingroup$ It seems that your conjecture is correct, we can test it using the two ways of passing arguments in LibraryLink. See my answer. $\endgroup$ Commented May 16, 2016 at 14:29