Questions tagged [array]
The array tag has no summary.
21 questions
0 votes
0 answers
63 views
How to generate block matrices of block matrices so that the dimensions of the blocks can be manipulated including zero dimensions also?
The required block matrix of block matrices can be generated as follows when none of the dimensions are zeroes. But How to create the block matrices when the dimensions of 2 or 3 or more submatrices ...
3 votes
1 answer
146 views
How to make selections from a QuantityArray?
Suppose I have a list myList of ordered pairs. The first element of each ordered pair represents a wavelength in nanometers. The second element of each ordered ...
1 vote
1 answer
106 views
How to join many tables one under the other? [closed]
Suppose I have three tables with index 1, 2, 3 ...
1 vote
0 answers
74 views
Transpose function fails to give a correct result [closed]
Mathematica 12.3.1.0 Platform: Linux x86 (64bit) I have a tensor ten Dimension[ten] ...
12 votes
2 answers
285 views
Why is 2-dimensional array access slow (compared to memoized downvalues)?
The fabricated example below demonstrates a bizarre case I ran into. (If it matters, this is with Mma 14.1 on Apple ARM, but I see the same behavior with Mma 12.3.1 on Intel x86.) On a whim, I tried ...
6 votes
3 answers
450 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 ...
3 votes
0 answers
123 views
Differentiating an inactive indexed sum returns 0 in Wolfram 14.2
I recently encountered unexpected behavior when computing the derivative of an inactive indexed sum in Wolfram 14.2.0. This example is taken directly from the official documentation of ...
0 votes
3 answers
173 views
How to use a function of functions to be set to specific values?
Constructs, like the following x[t_]:={x1[t],x2[t]} x[t_]:=Through[{x1,x2}[t]] x[t_]:=Comap[{x1,x2},t] (* Experimental in Mathematica *) can be used, for example, ...
0 votes
0 answers
66 views
How to arrange an array to make the ListContourPlot
I have an array of chisquare values for two parameters \alpha and a. The array is calculated for function of two parameter \alpha, a ...
3 votes
1 answer
97 views
Move array elements in a circle [closed]
Please, tell me, how you can move the elements of an array in a circle. For example, there is an array: ...
6 votes
5 answers
1k views
How to remove extra brackets from a list?
I have a list which looks like the following: list1={{{a,b,c},{a1,b1,c1},{an, bn,cn}},{{f,j,k},{f1,j1,k1},{fn, jn,kn}}} And I need it to be as follows: ...
1 vote
1 answer
178 views
Map array of functions
What is the most elegant way of mapping an array of functions to an array of arguments of the same length? In practice I want to map {f1,f2,f3} and ...
1 vote
1 answer
101 views
About NMinimize with an array of variable
I was trying to test NMinimize on $$ \int_0^1 (a+b(cx+d))^2 dx $$, then I guess it should be minimized when the integrand equals 0. It works fine when the integrand is only (a+bx)^2, I use the code: <...
0 votes
0 answers
62 views
Operate a two-dimensional array, but it cannot be compiled
I want to operate a two-dimensional array(list), use the FindFit function, do linear simulation, and find the difference between the simulated value and the original value, but it cannot be compiled. ...
1 vote
2 answers
125 views
Can't use iterative variable as part specification [closed]
I've got the following mathematica code: ...