Skip to main content

Questions tagged [numeric-array]

Filter by
Sorted by
Tagged with
6 votes
1 answer
212 views

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 ...
ango4's user avatar
  • 107
4 votes
1 answer
280 views

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 ...
Luca's user avatar
  • 434
0 votes
0 answers
82 views

I am writing a code to simulate some spins. Following is the main part of the code: ...
P Pyne's user avatar
  • 552
0 votes
1 answer
106 views

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) ...
Tamaghna's user avatar
2 votes
1 answer
58 views

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 ...
Niky177's user avatar
  • 21
0 votes
2 answers
84 views

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 <...
Amin Gholizad's user avatar
2 votes
3 answers
215 views

I have the following matrix with Dimensions[A] = {5}. What is the easiest way to convert it to $8 \times 8$ matrix? ...
Morcus's user avatar
  • 309
3 votes
3 answers
344 views

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 ...
Miss's user avatar
  • 73
3 votes
0 answers
45 views

Normally, Times threads element-wise over lists, so we can use it to express element-wise multiplication of arrays: ...
JEM_Mosig's user avatar
  • 3,053
2 votes
0 answers
87 views

I've have a big block of code written under Compile. Some other part of the code which receives data from shared Q useing ...
csk 7's user avatar
  • 413
0 votes
0 answers
99 views

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(\...
Skj's user avatar
  • 19
1 vote
1 answer
89 views

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 ...
Gert's user avatar
  • 1,783
15 votes
2 answers
442 views

Currently, NumericArrays are directly supported by the most important array-related functions, what makes them a very attractive data structure for implementing ...
Alexey Popkov's user avatar
11 votes
1 answer
389 views

It is easy to see that NumericArray is a construct underlying Image: ...
Alexey Popkov's user avatar
3 votes
1 answer
184 views

Bug introduced in 12.3 or earlier, fixed in 13.0. Suppose I have a normalized numerical 1D array, B1, ...
evanb's user avatar
  • 6,786
3 votes
4 answers
135 views

I want to make $S[\{,\cdots, \}]$ as follows First input of $S$ is given list $\{1,2,3,\cdots, n\}$ and it produces $s_{123\cdots n}$ Further, if the ordering of the list is given differently, still ...
phy_math's user avatar
  • 915
2 votes
1 answer
156 views

The 12.1 reimplementation of import for DICOM data seems to bring in the data from a single slice as a NumericArray, In the past, the data would be returned as a ...
xsk8rat's user avatar
  • 338
1 vote
1 answer
123 views

I did a loop (first of my life) for an iterative calculation. Is it possible to get all step values as a matrix. That means the "xValue" variable should be like {215.108,219.688,...} and not only the ...
Jocelyn Minini's user avatar
1 vote
1 answer
124 views

I have two arrays of elements. The second array is generated by the transfer of one or more element to another position. I want to know which element is transferred to which position. Following is the ...
user49535's user avatar
  • 1,225
6 votes
0 answers
121 views

Suppose that we create a NumericArray using a LibraryLink function, then pass this to another one. Is NumericArray guaranteed to maintain the binary data as it was ...
Szabolcs's user avatar
  • 239k
3 votes
1 answer
521 views

Suppose I have a binary file which consists of a list of integer or real numbers. Let's say signed 8-bit integers; so each byte of the file is a single such integer. How can I read it and turn it into ...
Paul Zinn-Justin's user avatar