Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Tests whether a matrix is an antidiagonal matrix
Check if a matrix is an antidiagonal matrix:
In[1]:= | ![]() |
Out[1]= | ![]() |
Test if the antidiagonal is above the leading antidiagonal one:
In[2]:= | ![]() |
Out[2]= | ![]() |
An example of a matrix that is not antidiagonal:
In[3]:= | ![]() |
Out[3]= | ![]() |
Test a complex matrix:
In[4]:= | ![]() |
Out[4]= | ![]() |
Test a rectangular matrix:
In[5]:= | ![]() |
Out[5]= | ![]() |
Test a SparseArray matrix:
In[6]:= | ![]() |
Out[6]= | ![]() |
Check if the off-antidiagonal elements are zero within a certain tolerance:
In[7]:= | ![]() |
Out[7]= | ![]() |
If the expression is not a matrix, AntidiagonalMatrixQ will return False:
In[8]:= | ![]() |
Out[8]= | ![]() |
In[9]:= | ![]() |
Out[9]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License