symbolic identity matrix
B = Eye( A, k = 0 ) B = Eye( r, c, k = 0 )
symbolic matrix
integer
non-negative integer
Returns an identity matrix with the same dimensions as matrix A.
Returns a matrix with the same dimensions as matrix A and ones on a lower (k < 0) or upper (k > 0) diagonal. For k = 0 the ones are located on the main diagonal (cf. above).
Returns an identity matrix with r rows and c columns.
Returns a matrix with r rows, c columns and ones on a lower (k < 0) or upper (k > 0) diagonal. For k = 0 the ones are located on the main diagonal (cf. above).
SymEngine: C++ library for fast symbolic manipulation.