performance-tuning's questions - English 1answer

1.798 performance-tuning questions.

I'm very interested in visualizing complex valued functions $f:\mathbb{C} \rightarrow \mathbb{C}$. Especially interesting to me are Möbius transformations. I found a nice way of visualizing these ...

Consider the following example of using Nearest: ...

I want to pad a set of data in {x, y} pairs with {x, 0}, {x, 0} on each side of each data ...

MMA 11.0.1.0 Win 10 64-bit i8700K The question is: how can one efficiently and speedily produce DateListPlots (or ListLinePlots with a date-time labelled x-axis calculated from x ordinates measure in ...

I'm working on a classifying two classes. I am training my Classify function with the RandomForest method, but it crashes. The ...

I have a question about the performance of Reap and Sow with Parallelize. I am aware of the following questions How to collect result continuously (interruptible calculation) when running parallel ...

I get a slow down when using ContourPlot on elements of a large array of messy expressions. That is, if fooArray has 100 elements and I plot the first 3, that's much slower than if fooArray has 3 ...

I am applying Select function to a large list called xyCoordinateCentreCircle. The dimensions of the list are: ...

I am constructing a matrix of the form $$ T_{i_aj_ak_al_a,i_bj_bk_bl_b} = T_{i_ai_b}\delta_{j_aj_b}\delta_{k_ak_b}\delta_{l_al_b} + T_{j_aj_b}\delta_{i_ai_b}\delta_{k_ak_b}\delta_{l_al_b} + T_{k_ak_b}\...

I want to determine whether I have regularly sampled data or not, a là RegularlySampledQ. The data itself might be huge. I tried a bunch of different approaches and ...

Mathematica has found that the maximum of the following function is negative using NMaximize, but I am trying to prove that the maximum is negative (i.e. that the ...

I have some code which numerically solves a differential equation for a given value of the parameter $M0$ and for some initial conditions. The initial conditions will remain fixed throughout the ...

I am trying to evaluate the following simple integral: ...

Is it possible to speed up this calculation?A[j_, p_, n_] := Sum[Binomial[n, k] p^k (1 - p)^(n - k), {k, 0, j}] Plot[{A[j, 0.5, 12000]}, {j, 0, 12000}]Thanks!

I have a large function func[a,b] and I need its Plot3D. Since the command ...

If I want to count the number of zeros at the (right) end of a large number, like $12345!$, I can use something like:Length[Last[Split[IntegerDigits[12345!]]]]...

I have a simple code to get a planet's true anomaly as a function of time, using Newton's method and a series expansion. (Note that I purposefully iterate Newton's method two more times than the order ...

This calculation takes a very long time! Why? How can I improve it? Thanks! ...

My question is inspired by this answer about meshing with quadrilateral elements. The following functions are my (naive) try of implementing the Laplacian smoothing. I find interior nodes in the mesh ...

Defn Let $\mathcal{G}=(\mathcal{V},\mathcal{E})$ and $\mathcal{G}' = (\mathcal{V}', \mathcal{E}')$ be two labeled graphs with alphabet $\mathcal{A}$. The labeled graph product $\mathcal{G} * \mathcal{...

Given a collection of sorted lists {l1, l2, ...} I need to find the smallest k index tuples taken from these lists by summed ...

I've tried to implement Breadth First Search algorithm in MMA, to attempt to solve the 8-puzzle game. But in some cases, I ran out of memory, but on other cases it solves without problem. Here is the ...

I have a list of pairs, e.g.,ex1={{1,2},{1,3},{2,3}, {4,5}, {6,7},{6,8}, {7,8}}that I would like to merge into the list ...

Context In order to implement regularised fitting in 2 or 3 dimensions (as is done say here) using BSplineBasis one needs to evaluate a basis over a set of data. ...

I'm trying to construct a large matrix which is derived from some higher rank tensor (the rank of interest to me changes case by case, so it needs to be a general method). Currently, the process of ...

For those, who are looking at Halirutan's answer and thinking "gee, I wish I was that good at LibraryLink, then I could really speed up my code!" I leave here the ...

Backslide introduced in 9.0, persisting through 11.3. Recently when I was learning differential equations, I noticed there is a shallow water wave equation to model the tsunami propagation. How to ...

I was trying to optimize some String-handling code here using my standard trick of converting it to a list of bytes first and using basic list operations instead of ...

I encounter this very often, here is just one recent example: I wantStreamPlot[ReIm[Sqrt[x+I y]],{x,-3,3},{y,-3,3},StreamStyle->"Line"]and because of square ...

I am trying to create an interpolation out of a function that comes from an improper integral. The end goal is to make a 3d plot over a specific region. Specifically, I have the following code: ...

I need to generate a Hadamard matrix with dimensions of $4096$, but it seems Mathematica is much slower than MATLAB when generating such matrices. This program ...

I have functions similar to this: ...

I have this relatively simple code, generated with another Mathematica code (this is just an example): (edit: see below for simpler version) ...

Take the following function defined in Mathematica:Itr[x_, p_, n_] := x^Nest[Power[p, #] &, 1, n];Evaluating this function even for small values of ...

I am interested in calculating the distance correlation between a pair of vectors. To do it I use CorrelationDistance function, but I get a distance greater than 1. ...

I am attempting to create several surface renderings of expressions that come out of a solution for the eigenvalues of a matrix and the resulting expressions are considerably messy The eigenvalue ...

I need to make this code faster and consume less memory. ...

The purpose of the code below is to generate numbers that are $2d+1$ digit palindromes in number base $b+1$, and are also palindromic in number base $b+3$, where: The ...

I am trying to run a code that gives out a matrix but, I seem to encounter some memory issues while trying to run it. The code is: ...

In a nutshell I have a large system of ODE. When I integrate the system from x = 0 to x = dx, ...

Bug introduced in 10.0 or earlier and fixed in 11.3 Cross-posted on Wolfram Community Consider the following graph with the vertex property "foo". ...

I am trying to find a sparse matrix of the size Col x Rows = 16777216 x 1024 where all the elements are 0 except the ones given ...

I've got a function of the form f[n,s] where n is a natural number and s is a finite ...

I have a function f that returns the number of triangles formed by given line segments. For example, in the following case f ...

I need to find the minimum of a function. However, the condition is that the final state should be normalized i.e. sum of the squares must be one. One way to deal with it is just add the constraint ...

I have a long list of strings and I'm trying to find a more efficient way of removing those elements that are prefixes of another: ...

Question: What is the fastest way to obtain a table of values from a parametrized function? For a function of x, which is a sum of ...

Im trying to further my understanding of mathematica coding and came up across this question. What is the main difference between Cases and ...

I haven't been able to find anything to specifically answer my question: When using Table[], I find that, for a program I am working on (I would post the code but ...

I am currently trying to simulate relaxation of a protein population while maintaining the stochastic properties of the system. For this, I used a Markov chain to describe the temporal evolution of ...

Related tags

Hot questions

Language

Popular Tags