Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 66833

This tag is for challenges involving matrices. A matrix, also known as a 2D array, is a list of numbers arranged in a rectangle with rows and columns.

16 votes
5 answers
759 views

Dominate a zero-sum game

You are to take a rectangular matrix \$n\times m\$, where \$n, m \ge 2\$, and output the same matrix with all dominated options removed. … The matrix is not guaranteed to contain any dominated options. The matrix may be reduced to a \$1\times1\$ matrix, at which point there are no more dominated options. …
caird coinheringaahin g's user avatar
27 votes
47 answers
3k views

Output a Latin Square

For example, $$\begin{matrix} A & B & C \\ C & A & B \\ B & C & A \\ \end{matrix}$$ is a Latin square as no row or column contains a repeated value. …
caird coinheringaahin g's user avatar
29 votes
23 answers
4k views

Calculate the inverse of a matrix

\begin{matrix} \left|\begin{matrix} -7 & 6 \\ 7 & 6 \end{matrix}\right| & \left|\begin{matrix} -4 & 6 \\ 5 & 6 \end{matrix}\right| & \left|\begin{matrix} -4 & -7 \\ 5 & 7 \end{matrix}\right| \\ … matrix} -3 & 0 \\ -7 & 6 \end{matrix}\right| & \left|\begin{matrix} 4 & 0 \\ -4 & 6 \end{matrix}\right| & \left|\begin{matrix} 4 & -3 \\ -4 & -7 \end{matrix}\right| \end{matrix}\right]^T \\ & = \ …
caird coinheringaahin g's user avatar
19 votes
6 answers
797 views

Is it an elementary matrix?

We'll say that an integer matrix is an "elementary matrix" if it is exactly one elementary row operation away from the identity matrix. … and indicate whether it is an elementary matrix or not. …
caird coinheringaahin g's user avatar
19 votes
4 answers
748 views

Calculate the integer square root of a matrix

For example, let $$A = \left[ \begin{matrix} -3 & 2 \\ 0 & -1 \end{matrix} \right]$$ Therefore, $$\begin{align} A^2 & = \left[ \begin{matrix} -3 & 2 \\ 0 & -1 \end{matrix} \right]^2 \\ & = \left[ \ … begin{matrix} -3 & 2 \\ 0 & -1 \end{matrix} \right] \times \left[ \begin{matrix} -3 & 2 \\ 0 & -1 \end{matrix} \right] \\ & = \left[ \begin{matrix} -3 \times -3 + 2 \times 0 & -3 \times 2 + 2 \times …
caird coinheringaahin g's user avatar