The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged

5

This is the actual data, everything else is derived from it: {T, W, H} = {1000, 100, 100}; matT = RandomReal[10, {T + 1, 2 T + 1}]; data = RandomReal[10, {W, H}]; u = RandomReal[{0, 1}, T + 1]; v = Table[RandomComplex[n + n I], {n, -T, T}]; That is how you compute the result: matX = TensorProduct[u, data]; matY = TensorProduct[v, data]; result = Total[...


3

Why feel when you can measure? I usually approach this problem through a Do[] loop. I also have the function MemorySummary[] defined as MemorySummary[]:=Print["Memory currently in use : ",MemoryInUse[]/1024.^2, "Mb, Maximum memory used in session : ",MaxMemoryUsed[]/1024.^2, "Mb"] One suggestion would be to preallocate your allData array. You know its ...


9

Please report this as a bug. A minimal example: Quiet @ Remove["System`Dump`rep$*"]; Quiet @ Remove["System`Dump`rules$*"]; Quiet @ Remove["IPOPTLink`Private`monitor$*"]; if=NDSolveValue[{f'[x]==-2x+19,f[0]==4},f,{x,5,10}]; FindMaximum[{if[x], 5<x<10}, {x, 8}]; ToExpression[Names["System`Dump`rep$*"][[-1]], InputForm, DownValues]//Short ...


Top 50 recent answers are included