# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# ## Matrix Operation
#
# The following codes are for conducting matrix operation using Python.
#
# 1. Using `numpy`
# 2. Using `pytorch`
# 3. Using `tensorflow`

import numpy as np
import matplotlib.pyplot as plt
A = np.array([[3, 4],[5, 6],[7, 8]]) # A matrix with 3x2 dimension
B = np.array([[1, 9], [2, 0]]) # B matrix with 2x2 dimension
AB = np.dot(A,B)
AB



StarcoderdataJupyterScriptsDedupFiltered