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.

Required fields*

4
  • $\begingroup$ Whould you share with us what f is? $\endgroup$ Commented Sep 21, 2018 at 13:06
  • $\begingroup$ f is a function but in this code it is just a variable. I thought of computing this matrix first and then define what f is, because every single computation of f takes about 0.02 seconds. $\endgroup$ Commented Sep 21, 2018 at 13:30
  • 1
    $\begingroup$ It is absolutely contraproductive to use symbolic code here. For example, the SparseArray cannot store the values in a packed array, if the values are not machine numbers. In the end, the values must be calculated anyways. So, please give me a concrete example for f. $\endgroup$ Commented Sep 21, 2018 at 13:33
  • $\begingroup$ Let it be for example f[{a_, b_, c_, d_, i_, j_}] := a + b + c + d + i + j; then?. $\endgroup$ Commented Sep 21, 2018 at 13:42