Skip to main content

All Questions

1 vote
0 answers
95 views

Attempt to find a solution (out of potentially many) to a system of equations with FindInstance runs forever or crashes

I have a system of equations that in principle should have a solution (I would think not a unique one), which I want to solve. I am not interested in all solutions; I just want to locate one, assuming ...
AG1123's user avatar
  • 603
2 votes
2 answers
138 views

Using ParallelTable for assignment

...
Mam Mam's user avatar
  • 1,913
2 votes
2 answers
192 views

Speed up NDSolveValue

I'm trying to solve this differential equation to obtain the density matrix elements $\rho$. $$\frac{d\rho}{dt}=-i\Big(H_{0}(t)\rho(t)-\rho(t)H_{0}(t)\Big)$$, for Hermitian Hamiltonian $$H_{0}(t)=\...
Radmehr's user avatar
  • 51
1 vote
1 answer
166 views

Why, if you write the expression in the form of two functions, does the code stop working?

I would like to find the minimum of the function EER[a, v] using parallel computing. If I write the code like this, it works: ...
Mam Mam's user avatar
  • 1,913
1 vote
2 answers
102 views

Parallelize elements of a vector or array

Suppose I want to calculate a vector or an array (say, for simplicity a 4-by-1 vector), but each element contains independent numerically evaluated functions $f_1,f_2,f_3,f_4$ and each takes long time....
Evangeline A. K. McDowell's user avatar
4 votes
1 answer
144 views

ParallelTable/ParallelDo for Newton's Method doesn't work [closed]

We run such ParallelTable based on @Syed https://mathematica.stackexchange.com/a/261603/54516. ...
ABCDEMMM's user avatar
  • 1,884
0 votes
1 answer
465 views

How to use parallel computation in mathematica for numerical Integration

I have a multi dimensional integral and I need to integrate it numerically and than plot it over an extra variable for zeta = 0.5. ...
Arian's user avatar
  • 171
0 votes
0 answers
61 views

Error using ParallelMap to evaluate NIntegrate of numerical derivative ND

I want to evaluate a numerical integration in which the integrand is constructed out of a function f and its derivative f'. <...
user35323's user avatar
7 votes
1 answer
285 views

Fast Evaluation of a series of dot product

Context I have a function that depends on 3 real variables x,y and z and that is defined by a series of matrix products. The evaluation of f for a specific (x,y,z) is fast ~0.02 sec but I want to ...
Hermanter's user avatar
  • 305
2 votes
1 answer
152 views

Implementation of Dirichlet-Neumann method

I am new in Mathematica and I was trying to find documentation on the Dirichlet-Neumann and Neumann-Neumann methods (which are part of Domain Decomposition Method), but I couldn't find any. Can ...
420's user avatar
  • 21
2 votes
1 answer
109 views

Vectorized RootFind for interpolated function

I've spent the last few days trying to vectorize my code to speed up root-finding on a grid. Apologies in advance if my code is poorly formatted. I have a fair amount of setup for the problem. It ...
user71709's user avatar
18 votes
1 answer
559 views

When does NDSolve parallelize ODE system solving?

I've long believed that NDSolve cannot make use of multiple cores to solve ODE system, but things seem to be different at least since v12. Consider the following ...
xzczd's user avatar
  • 70.1k
3 votes
1 answer
142 views

ParallelDo gives different solution to Eigensystem

I am trying to calculate the eigensystem of a large matrix (e.g. 256x256). I have found that when I do this within a ParallelDo (because I am actually calculating many of these eigensystems), the ...
gerhard_t's user avatar
0 votes
0 answers
296 views

Properly parallelising FindRoot for multiple starting values

I have a problem I want to find numerical solutions for with different starting variables. Let F be a vector supposed to vanish, which in its definition includes ...
Bubaya's user avatar
  • 121
3 votes
1 answer
544 views

Jacobian for parallelised FindRoot with multiple variables

Michael E2 explains how to use parallel processing to speed up multiple FindRoot calculation with the same function in https://mathematica.stackexchange.com/a/...
Jojo's user avatar
  • 1,288

15 30 50 per page