diagonal of symbolic matrix
v = Diag( A, k = 0 ) A = Diag( v, k = 0 )
symbolic matrix
symbolic vector
integer
Returns the main diagonal of a matrix A as vector v.
Returns a lower (k < 0) or upper (k > 0) diagonal of a matrix A as vector v. For k = 0 the main diagonal is returned (cf. above).
Creates a diagonal matrix with the elements of the vector v on the main diagonal.
Creates a diagonal matrix with the elements of the vector v on a lower (k < 0) or upper (k > 0) diagonal. For k = 0 the elements of v are on the main diagonal (cf. above).
SymEngine: C++ library for fast symbolic manipulation.