python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Python: Create a function that takes dimensions & scaling factor. Returns a two-dimensional array multiplication table scaled by the scaling factor
I am trying to create a function that does what the title is asking for. Without the use of any functions besides: range, len or append. The function would take the dimensional input of the 2D array, ...
Gleez
Votes: 0
Answers: 1
How to handle large matrices and matrix multiplication in Python
I'm trying to execute a matrix multiplication which has the following scheme:
C = np.dot(np.dot(sparse.csr_matrix(np.double(A).transpose()),sparse.spdiags(B,0,Ngrid,Ngrid)), sparse.csr_matrix(np.doubl...
Archimedes_91
Votes: 0
Answers: 2
Filling MATLAB array using formula and arrays of values
I want to fill a 10x15 matrix in MATLAB using the formula z(i, j) = 2 * x(i) + 3 * y(j)^2, so that each entry at (i, j) = z(i, j). I have arrays for x and y, which are of size 10 and 15, respectively....
Noah Williamson
Votes: 0
Answers: 1
How to set a variable limit on a specific row of a matrix within a list within a forloop
I have a list of matrices which I am iteratively matrix multiplying by an initial vector of numbers. I have a forloop to accomplish this, and am able to set an upper limit at an example flat rate (7,0...
user11057680
Votes: 0
Answers: 1