We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [matrix]

In mathematics, a matrix (plural matrices) is a rectangular array of numbers, symbols, or expressions, arranged in rows and columns. The individual items in a matrix are called its elements or entries.

Filter by
Sorted by
Tagged with
-1
votes
2answers
609 views

Matrix multiplication of arbitrary sizes [closed]

This function is for multiplying two matrices together. It's kind of messed up because the result is actually supposed to overwrite the object that called it, or since it's ...
-1
votes
1answer
67 views

Combine Matrix Columns JavaScript

I did this Codepen to combine all the columns from one matrix in JS. ...
-2
votes
2answers
105 views

Numerical algebra using a Matrix class [closed]

I would like to make a Matrix class. Can any of you help me about this class? There are two ways: ...
-2
votes
1answer
297 views

In matrix, if a zero is found, make its row and column to all zero

I am making an ArrayList, keeping note of all the indices where zero has occurred. Later on, I am taking out the indices from ...
-3
votes
1answer
6k views

Sum of diagonal elements in a matrix [closed]

The idea is to calculate sum of diagonals example [[1,2,3],[4,5,6],[7,8,9] the correct answer would be [1,5,9][3,5,7] = total 30 ...
-3
votes
1answer
79 views

About the problem of seeking matrix inverse

Recently I have solved the inverse matrix in three ways, found that their work efficiency has obvious differences. This is the case: ...
-3
votes
0answers
27 views

Matrix class problem in Python [closed]

Please bear in mind this is an early version of the class - I am aware that I am getting instances all wrong, but that will change later. I have a problem with this code: ...
-4
votes
1answer
2k views

Find element in 2D matrix where rows and columns are sorted

Elements of a matrix are given in sorted rows and columns. I want to find the element in an optimized way. First, I will get the last element of a row, which will determine if a number can exist in ...