import numpy as np

# x = np.array([1.0, 2.0, 3.0])
# y = np.array([2.0, 4.0, 6.0])
# print(x + y)
# print(x - y)
# print(x / y)
# print(x / 2)

# A = np.array([[1, 2], [3, 4]])
# B = np.array([[3, 0], [0, 6]])
# print(A + B)
# print(A * B)

# A = np.array([[1, 2], [3, 4]])
# B = np.array([10, 20])
# print(A * B)

X = np.array([[51, 55], [14, 19], [0, 4]])
print(X)
print(X.ndim)
print(X.size)
print(X[0])
print(X[0][1])
print(X.shape)

for row in X:
    print(row)

X = X.flatten()
print(X.shape)
print(X)
print(X[np.array([0, 2, 4])])
print(X > 15)
print(X[X > 15])

print(np.array([0, 2, 4]).shape)
print(np.array([0, 2, 4]).ndim)
print(np.array([[[]]]).ndim)
print(np.array([[[]]]).shape)
