<jupyter_start><jupyter_text>Matrix and its Operations<jupyter_code>import numpy as np
#Create an 1x3 matrix

x = np.array([1,2,3])
print(x)

#Create a 2x3 matrix

y = np.array([[1,2,3],[4,5,6]])

print(y)
#Create a 3x3 matrix
z = np.array([[1,2,3],[4,5,6],[7,8,9]])
print(z)
#Create a constant with all values are 6

a = np.array([[6,6],[6,6]])
print(a)

a = np.full((2,2),6)
print(a)
#Create a diagonal matrix
b = np.array([[1,2,3],[4,5,6],[7,8,9]])
print(b)
c = np.diagonal([[1,2,3],[4,5,6],[7,8,9]])
print(c)
#Create an identity matrix
q = np.eye(4)

print(q)
#Create a zero matrix
w = np.zeros((4,5))
print(w)
#Create an empty matrix

e = np.empty((0,5))
print(e)
#Addition of matrices
r = np.array([[1,2,3],[4,5,6]])
t = np.zeros((2,3))

print (r+t)

#Subtraction of Matrices

r = np.array([[1,2,3],[4,5,6]])
t = np.array([[-1,2,4],[7,4,2]])
#print(r)
#print(t)
print (r-t)<jupyter_output>[[1 2 3]
 [4 5 6]]
[[-1  2  4]
 [ 7  4  2]]
[[ 2  0 -1]
 [-3  1  4]]
{'fraction_non_alphanumeric': 0.2554517133956386, 'fraction_numerical': 0.09657320872274143, 'mean_word_length': 4.807228915662651, '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': '400247', 'license': 'Apache-2.0', 'n_tokens_mistral': 510, 'n_tokens_neox': 492, 'n_words': 110, 'path': 'Vector_representation.ipynb', 'repo_name': 'M-Angeles/Linear-Algebra-58020', 'size': '963'}