Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python numpy matrix to list

import numpy as np
x = np.matrix([[1,2,3],
               [7,1,3],
               [9,4,3]])
y = x.tolist()

y --> [[1, 2, 3], [7, 1, 3], [9, 4, 3]]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #numpy #matrix #list
ADD COMMENT
Topic
Name
6+5 =