Skip to main content
0 votes
1 answer
27 views

I do apologise if this is an incredibly dumb question, because I know it is, I have no experience with colour matrices and the information I can find online to learn about them is unhelpful at best ...
Tojie Akida's user avatar
1 vote
1 answer
52 views

I am doing an assignment on matrices and gradients, where the final answer must be expressed as a row vector. vr = np.array([1, 2, 3]) vrr = np.array([[1, 2, 3]]) Mathematically, a row vector should ...
Louis Chua's user avatar
0 votes
0 answers
39 views

I am trying to determine an angle of rotation dynamically within an animation for each frame. The object is only rotating on its Z axis and after some research I found that the best method is probably ...
Connor R's user avatar
3 votes
0 answers
98 views

I want to plot all the diagonals of a matrix. In the matrix row 1 contains information of time 1, row 2 of time 2 etc etc. Each diagonal presents the evolution of the number of fishes in a cohort that ...
Claris's user avatar
  • 31
2 votes
2 answers
135 views

Short version: How do I vectorize two matrices A and B by column so that I can pass the 1st, 2nd, ..., ith column of A and the 1st, 2nd, ..., ith column of B to a function without a loop? I have two ...
pimple's user avatar
  • 358
0 votes
1 answer
167 views

I'm trying to convert a SAS program into a R one and I have stumbled at the for() loop and array part. It keeps saying in the log: "Error in for (. in i) seq_len(NBR_LIGNES_MAX) : 4 arguments ...
Simon O.'s user avatar
2 votes
0 answers
88 views

I am trying to learn C, and I want to specifically work with arrays and matrices as I do scientific simulations (coming from python!!). After writing few basic 1-D array codes in C, I am going for ...
Sayantan4796's user avatar
1 vote
2 answers
168 views

I am trying to perform 2D matrix processing (convolution) by applying a kernel/filter to a large matrix. There is a built-in function convolve that can perform convolution. It offers three different ...
Glory2Ukraine's user avatar
2 votes
0 answers
56 views

I have a self-hosted setup consisting of: Matrix Synapse (home server) LiveKit (for media routing) LiveKit SIP (for PSTN connectivity) Element client ✅ Working setup Element → Element calls work ...
Rahib Rasheed's user avatar
0 votes
1 answer
65 views

I am using transformation matrices with jspdf to change the origin and scaling of my drawings. setCurrentTransformationMatrix has no official documentation from what I found (well, except if "...
Alphasaft's user avatar
  • 322
3 votes
7 answers
243 views

I want to use a spreadsheet to take a column of rankings and turning into a pairwise matrix. Suppose I had a column like so: Candidate Ranking A 1 B 5 C 3 D 2 E 4 I want to create a 5x5 matrix where ...
James Cleveland-Tran's user avatar
2 votes
1 answer
200 views

I have the following numeric matrix in MATLAB: A = [3 2 7; 9 1 4; 5 6 8]; I want to sum all elements that are greater than 5 and are also even. I need to do this without using a loop, and store the ...
Nar.hhs's user avatar
  • 68
3 votes
6 answers
265 views

I want to take a vector of some length and arrange it sequentially as the off-diagonal elements of a square matrix (as I want the diagonals to all be 0), using only the default R packages. I can make ...
kacorn's user avatar
  • 33
1 vote
1 answer
146 views

I am following a paper that uses a Hermitian covariance matrix and inverts it to produce a Fisher matrix. I construct my covariance as Gamma[i,m,n], stored inside a larger array of shape (n_z, n_k, ...
Miguel's user avatar
  • 143
2 votes
2 answers
168 views

I have an algorithm which involves generating a random square matrix and then inverting it. To avoid the program interrupted by numerically singular matrix, I wish to do something like the pseudo-code ...
Asigan's user avatar
  • 167

15 30 50 per page
1
2 3 4 5
2751