Questions tagged [numeric-array]
The numeric-array tag has no summary.
22 questions
6
votes
1
answer
212
views
Applying Reverse on NumericArray
I am wondering if there is a way to reverse explicit levels in NumericArray?
Reversing works on the first level:
Reverse[{{1, 2}, {3, 4}}]
and
...
4
votes
1
answer
280
views
How does Mathematica MatrixExp Krylov method scale with sparse matrices? [closed]
People say that mathematica is not as good as matlab for nunmerics. For my specific use case, I am trying to solve differential equations with the MatrixExp method ...
0
votes
0
answers
82
views
Speed up the evaluation process
I am writing a code to simulate some spins. Following is the main part of the code:
...
0
votes
1
answer
106
views
Solving high dimensional nonlinear algebraic equation numerically
I would like to solve an algebraic equation A=f(A) whose argument A is a large 3D matrix. Ideally, I would not like to flatten the system of equations, before feeding into FindRoot because f(A) ...
2
votes
1
answer
58
views
Fitting a free parameter by matching a an array with another array
I have the following problem that I can't figure out how to solve.
I have two measured signals, (data1 and data1), and their measured sum (datasummeasured). I have a theoretical description of how the ...
0
votes
2
answers
84
views
Use elements of an array in a function [closed]
I have an array that I am importing from a mat file lets call it $A$.
I want to define a function like
F[n_,m_] = m A[[1,n]]
But when I do this, I get an error
<...
2
votes
3
answers
215
views
How to remove extra parentheses in a matrix [closed]
I have the following matrix with Dimensions[A] = {5}. What is the easiest way to convert it to $8 \times 8$ matrix?
...
3
votes
3
answers
344
views
Partition of lists with specified elements
I have an array like this and want to split it into sublists. It should contain the first element "Res" without curly braces and the one sublist starts from 2 to the 9th column the 3rd ...
3
votes
0
answers
45
views
How to multiply NumericArrays element-wise? [duplicate]
Normally, Times threads element-wise over lists, so we can use it to express element-wise multiplication of arrays:
...
2
votes
0
answers
87
views
Can NumericArray be Compiled?
I've have a big block of code written under Compile. Some other part of the code which receives data from shared Q useing ...
0
votes
0
answers
99
views
Cannot generate an array of results for my numerical method
I want to apply the following scheme:
$$
\begin{aligned}
\psi_{i, j+1} &=-\psi_{i, j-1}+\left(\frac{\Delta t}{\Delta r_*}\right)^2\left(\psi_{i+1, j}+\psi_{i-1, j}\right) \\
&+\left(2-2\left(\...
1
vote
1
answer
89
views
Strange behaviour of IntersectingQ
I wanted to check whether two lists of complex numbers have an element in common and stumbled upon this rather strange behaviour of the function IntersectingQ. If I ...
15
votes
2
answers
442
views
Arithmetic operations on NumericArrays
Currently, NumericArrays are directly supported by the most important array-related functions, what makes them a very attractive data structure for implementing ...
11
votes
1
answer
389
views
What is idiomatic way to extract NumericArray from Image?
It is easy to see that NumericArray is a construct underlying Image:
...
1
vote
1
answer
101
views
Why the substraction of two big numbers does not yield 0, but taking their quotient yields 1?
I have two series, generated as,
...