]>
gitweb.michael.orlitzky.com - dunshire.git/blob - matrices.py
82944ee72ab77ca676054601991afadcd804ae77
1 from cvxopt
import matrix
, spmatrix
5 Append the column ``b`` to the right side of the matrix ``A``.
7 return matrix([A
.trans(),b
.trans()]).trans()
11 Append the row ``b`` to the bottom of the matrix ``A``.
17 Return the ``n``-by-``n`` identity matrix.
19 return spmatrix(1,range(n
),range(n
))