I'm trying to return a numpy
flattened array
of a numpy
matrix where all the values where the row == col
is ignored.
For example:
>>> m = numpy.matrix([[1,2,3],[4,5,6],[7,8,9]])
>>> m
matrix([[1, 2, 3],
[4, 5, 6],
[7, 8, 9]])
# Some function....
# result:
m_flat = array([2,3,4,6,7,8])