All Questions
Tagged with parallelization matrix
34 questions
5
votes
3
answers
345
views
Speeding up multiplication of matrix arrays by parallelization?
EDITED QUESTION:
I edit my question to be as clear as possible, as I find the problem quite confusing and severe, and the previous answers unfortunately not helpful.
I define two arrays of matrices ...
0
votes
3
answers
105
views
How to parallelize and minimize the time of a simple code using ParallelTable? [duplicate]
Dear Mathematica users,
I have simplified my real problem, lets say I have 2 matrices, Amat and Bmat, the below code generates a random 2x2 real matrix, B for each of the eth element range from 1 to ...
0
votes
1
answer
80
views
How to use ParallelTable and Eigensystem in right way?
I have the next matrices:
...
10
votes
2
answers
403
views
Efficient way to store the terms of a summation in a list?
I have two matrices, A and B of the same dimension $Nr\times Nc$, with $Nr\gg Nc$.
Essentially, I am trying to put all the terms ...
3
votes
1
answer
80
views
What is the optimal way to get selected elements from a matrix?
I have a 2x2 matrix "M", and a list "ind" containing pairs of indices.
M = {{a, b, c}, {d, f, g}, {h, i, j}};
ind = {{1, 2}, {1, 1}, {3, 1}};
I ...
0
votes
0
answers
57
views
Efficiency in a use of ParallelMap[]
Suppose M is a large and relatively dense symbolic matrix. I am interested in applying F[] (...
4
votes
0
answers
171
views
Speeding and avoiding unwanted crash of nested Table by `NearestNeighborGraph`
I have a code that generates coordinate points for a 2 dimensional lattice. So the coordinates are of the form {x,y}. Now, I generate a graph out of these ...
2
votes
1
answer
146
views
Speed Up the Gelman-Rubin-History function
A bit of background information
I have created a function to calculate the convergence of the Gelman Rubin diagnostic (useful in Bayesian analysis). The function seems to work as I want, however I ...
6
votes
1
answer
349
views
Efficient construction of a SparseArray from LIL (list of lists of column entries)
In Python scipy.sparse, there are methods to convert between CSR, CSC, LIL, DOK, etc. implementations of a sparse matrix. What is the most efficient way in Mathematica to construct a ...
0
votes
0
answers
47
views
How can I parallaize expresion that contains ParallelSum?
I have this code where the last part contains ParallelSum
...
2
votes
0
answers
149
views
How can I numerically evaluate the trace of a large matrix to speed up the code?
I have a large matrix (4Wn*4Wn) resulted from multiplication of different matrices and I would like to evaluate the trace numerically to speed up the process. Here ...
0
votes
1
answer
229
views
How can we speed up a matrix multiplication using ParallelTable and ParallelISum?
I do belive that Mathematica can work as fast as other packages, but it is really sensitive to the way we write the code. Here I would like to evaluate a trace resulted from a matrix multiplication at ...
0
votes
0
answers
237
views
Is possible to make RowReduce more efficient?
I have huge matrices (not square ones, the rows are many more than columns), like 85k rows and 50k columns. I would like to use RowReduce on these, but it takes too much time to do that. I need to ...
4
votes
2
answers
196
views
4X4 matrix of distinct cubed integers with identical row and column sums
I wrote the following code:
...
0
votes
0
answers
48
views
Converting Do expression to ParallelDo
I'm trying to use ParallelDo to speed up my code, but a problem confused me. In the following code I use Do and get the expected ...