vector in python

Solutions on MaxInterview for vector in python by the best coders in the world

showing results for - "vector in python"
Elicia
21 Jan 2016
1# Load library
2import numpy as np
3
4# Create a vector as a row
5vector_row = np.array([1, 2, 3])
6
7# Create a vector as a column
8vector_column = np.array([[1],
9                          [2],
10                          [3]])