text_plain_output_1.png
from scipy import sparse

import numpy as np

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

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

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

matrix_object = np.mat([[1, 2], [3, 4]])

from scipy import sparse
matrix = np.array([[1, 0, 2, 0], [1, 0, 0, 1], [0, 0, 1, 0]])
matrix_sparse = sparse.csr_matrix(matrix)

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

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

vector_row[:3]