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.
689 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
1
answer
87
views
OpenProcessing.org JavaScript program - Building a list of matrices
My openprocessing.org JavaScript code listed below produces the output I want but doesn’t seem very elegant to me especially the ".M" in "matrices[mat].M[row][col]". Any comments to improve the ...
4
votes
0
answers
77
views
16x16 integer matrix transpose using SSE2 intrinsics in C
I was inspired by this and this to make a C function that would take an array of 16 __m128i, treat it as a matrix of 16x16 ...
5
votes
1
answer
72
views
The Routh-Hurwitz criterion in Mathematica implementation
The Routh-Hurwitz criterion is a mathematical test that provides conditions for the stability of a system by analyzing the signs of the determinants of specific matrices derived from the system's ...
user avatar
user289560
13
votes
5
answers
2k
views
solve n*m matrix processing in less time
I want to solve a problem in less time complexity. Here are the details:
Given an n*m matrix, n rows and m columns. Initially, the matrix is empty filled with 0s.
...
3
votes
3
answers
494
views
Matrix Multiplication & Addition
I created this small library to perform basic arithmetic on matrices. I have written the code, and it runs fine. Is there any unexpected behavior or memory leaks? Any room for improvement?
...
3
votes
3
answers
136
views
Determinant of matrix Python
This is an addition of my previous question Python matrix class. I've added a determinant function using Laplace expansion to my Matrix class. What I am looking for specifically is how 3x3 matrices ...
8
votes
5
answers
1k
views
Python matrix class
To prepare for my studies in linear algebra, I've decided to write a simple matrix class. This is the initial program, with functions to find the determinant and decomposition(s) to follow. I wanted ...
3
votes
1
answer
187
views
Snail matrix in Java - version III (generalizing)
Once again, in the previous version,
Alexander Ivanchenko helped me with his awesome answer.
Now, I have improved the toString() and, also, generalized the class ...
5
votes
1
answer
341
views
Snail matrix in Java - version II
(This post is the continuation of Snail matrix in Java. Also, this post has an continuation.)
As previously, a snail matrix is any square matrix \$M_n = \mathbb{N}^{n \times n}\$ with cell elements ...
6
votes
2
answers
915
views
Snail matrix in Java
(This post has an continuation: Snail matrix in Java - version II.)
Inspired by this post, I decided to solve that problem in Java. The idea is to decide on an \$n \in \mathbb{N}\,ドル create a square ...
15
votes
4
answers
2k
views
Create a snail matrix
Statement:
Create a script that, given an integer \$n\,ドル create a square matrix of dimensions \$n \times n\$ with the numbers from \1ドル\$ to \$n^2\,ドル arranged in a snail pattern.
Example:
...
2
votes
0
answers
77
views
Optimizing even more a C++ matrix class with expression templates using variadic templates
I looked at Bowie Owens' cppcon 2019 talk (the slides can be found here) where he shows how to implement a tridiagonal matrix classes using expression templates but without resorting to the CRTP. (It ...
4
votes
2
answers
203
views
Matrix Factorisation class packaging methods for factorisation of explicit & implicit data matrices using Gradient Descent, SGD and ALS
Attached below, and also as this GitHub gist, is code for a Python class I wrote as part of a personal learning/portfolio project on collaborative-filtering recommender systems via matrix ...
8
votes
2
answers
515
views
Image Rotation and Transpose Functions Implementation in C++
This is a follow-up question for Gaussian Fisheye Image Generator Implementation in C++ and An Updated Multi-dimensional Image Data Structure with Variadic Template Functions in C++. I am trying to ...
5
votes
1
answer
491
views
High Performance Matrix Multiplication is not very high speed, why?
I would appreciate a review of the following Rust implementation of high performance matrix multiplication.
After reviewing available literature, including Anatomy of High Performance Matrix ...