# All Questions

Tagged with
16 questions
Filter by
Sorted by
Tagged with
78 views

### How to compile properly for performance tuning

I have a question about how to compile functions properly for performance tuning. Currently, I am trying to solve an eigenvalue problem of a large matrix. Initially I just used the conventional ...
55 views

### How to make a compiled version of a function?

I'm trying to make a compiled version of this function ...
62 views

### compiling matrix row assignment

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

### Speeding up filling a matrix when approximating a double integral

I want to approximate a double integral in the process of solving a partial-integro differential equation, to then put it, next to the differential part. The integral is (after some simplifications): \...
104 views

### compiled function does not extract elements from a matrix, proceed with uncompiled evaluation

I have written a small piece of code for a function that extracts certain elements from a matrix and then sum them and return the result. Although the uncompiled version works, when I try to switch to ...
60 views

### Compilable table of Matrix diagonals function

1, I am trying to make Compilable function which takes Matrix of zeroes and ones f.e: ...
76 views

### Is there a way to reduce size of complex number?

I would like to create huge matrices with hundreds of thousands of elements per side and I would like to use complex numbers in it for further processing by Mathematica functions. When I investigate ...
78 views

### Speeding up computation of a sequence

I am simulating the dynamics of a spring mass system impact an obstacle. I will not go into the details of the numerical scheme, but here are the general parameters and functions: ...
210 views

### Fast manipulation of large dimensional arrays

I am dealing with a multiplication of two- and three- dimensional arrays. Since the arrays are large, I am compiling a function to deal with it. The code of the function, with a working example, is as ...
190 views

### Compiling matrix multiplication using a list of matrices

I'm trying to create compiled function which computes a list of Gamma matrices named GammaM and multiply them within the compiled code. ...
226 views

### different situations with Compilation of ConstantArray

First, we load some tools related to Compile for analysis. ...
80 views

### Is tensor argument passing to module expensive?

I wrote a simple module which is supposed to do recursive computation, however it turns out to be expensive even for 300 points. I am not sure why is it slow, all the computations seem to be ...
519 views

### Improve simulation speed using Compile

I have two square matrices, a hermitian matrix h and an unitary matrix v. I am interested in the following function ...
1k views

### Can (compiled) matrix permanent evaluation be further sped-up?

Update III  Mathematica 10.2.0 now ships with a predefined System`Permanent function, which the PermanentCode package ...
I am trying to find the inverse of the matrix $A$ m = n = 500; SeedRandom; A = RandomReal[10, {m, n}]; iteratively using the following matrix ...