<jupyter_start><jupyter_text>Matrix and its Operations<jupyter_code>import numpy as np
#Create a 1 x 3 matrix
a = np.array([1,2,3])
print(a)
#Create a 2 x 3 matrix
b = np.array([[1,2,3],[4,5,6]]) #This is an example of rectangular
print(b)
#Create a 3 x 3 matrix
c = np.array ([[1,2,3],[4,5,6],[7,8,9]])
print(c)
#Create a constant array with all values are 9
d = np.full((4,4),9) #This is an example of square matrix
print(d)
#Create a diagonal matrix
e = np.array([[1,2,3],[4,5,6],[7,8,9]])
print(e)
e = np.diagonal([[1,2,3],[4,5,6],[7,8,9]])
print(e)
#Create an identity matrix
f = np.eye(9)
print(f)
#Create a zero matrix
g = np.zeros((6,5))
print(g)
#Create an empty matrix
h = np.empty((0,5))
print(h)
#Addition of Matrices
i = np.array([[1,2,3],[4,5,6]])
j = np.zeros((2,3))
print(i+j)
#Subtraction of Matrices
i = np.array([[1,2,3],[4,5,6]])
j = np.array([[-1,2,4],[7,4,2]])
print(i-j)<jupyter_output>[[ 2  0 -1]
 [-3  1  4]]
{'fraction_non_alphanumeric': 0.22936763129689175, 'fraction_numerical': 0.08252947481243302, 'mean_word_length': 5.35374149659864, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '152187', 'license': 'Apache-2.0', 'n_tokens_mistral': 452, 'n_tokens_neox': 435, 'n_words': 113, 'path': 'Vector_Representation.ipynb', 'repo_name': 'amnbg/Linear-Algebra-58020', 'size': '933'}