Home Examples Installation Documentation Contact Help

make_from_rows

Specification

Location Author Maintained by
isl/math/matrix3.py Kenny Erleben DIKU

Purpose & Params

Converts an 3 numpy arrays of length 3 each to a 3 by 3 matrix. Every array are used as rows.

Example

    a,d,h = (np.array([1,2,3]),
             np.array([4,5,6]),
             np.array([7,8,9])
                 )     
mat3.make_from_rows(a,d,h)

output:

   array([[1., 2., 3.],
          [4., 5., 6.],
          [7., 8., 9.]])