Open In App

AlgebraOnMatrix Module in Python

AlgebraOnMatrix module is that library of python which helps you to perform basic matrix algebra such as addition of two matrices, subtraction of two matrices, multiplication of two matrices, transpose of matrix .

Installing Library

This module does not come built-in with Python. You need to install it externally. To install this module type the below command in the terminal.



pip install AlgebraOnMatrix

Function of AlgebraOnMatrix

Matrix : It will transform our Two dimensional array into matrix .

Example :






# Importing Matrix function  
# From AlgebraOnMatrix Library  
from AlgebraOnMatrix import Matrix
  
arr =[[1, 2, 3], [4, 5, 6, ], [7, 8, 9]]
  
# Now we will transform our 2d array
# into the matrix and make an object
# of it 
a = Matrix(arr)

Operations on Matrix


Article Tags :