Skip to Content

Numpy – Check If Matrix is an Identity Matrix

In this tutorial, we will look at how to check if a matrix is an identity matrix in Numpy with the help of some examples. What is an identity matrix? An identity matrix is a square matrix with all diagonal elements as 1 and all non-diagonal elements as zero. The following image shows some identity …

Read More about Numpy – Check If Matrix is an Identity Matrix

Numpy – Check if Matrix is a Lower Triangular Matrix

In this tutorial, we will look at how to check if a numpy matrix (a 2d numpy array) is a lower triangular matrix or not with the help of some examples. What is a lower triangular matrix? A matrix is considered an upper triangular matrix if all the elements above the main diagonal are zero. …

Read More about Numpy – Check if Matrix is a Lower Triangular Matrix

Numpy – Check if Matrix is an Upper Triangular Matrix

In this tutorial, we will look at how to check if a numpy matrix (a 2d numpy array) is an upper triangular matrix or not with the help of some examples. What is an upper triangular matrix? A matrix is considered an upper triangular matrix if all the elements below the main diagonal are zero. …

Read More about Numpy – Check if Matrix is an Upper Triangular Matrix