Symbolic determinant, C output
Hi
I would like to create a C-formatted, symbolic expression for the
determinant of a matrix with a given dimension. For example, if the
matrix is 2x2 and is called M, I need:
M[0][0]*M[1][1] - M[0][1]*M[1][0]
ccode(det(M)) will do that if M is already defined as a symbolic
matrix. But how do I define a symbolic NxN matrix, without defining
its elements?
Thanks a lot
Farzad
.
Relevant Pages
- Re: Symbolic determinant, C output
... >> determinant of a matrix with a given dimension. ... In addition to the concerns John raised, the symbolic expression of the ... (comp.soft-sys.matlab) - Re: Symbolic determinant, C output
... > I would like to create a C-formatted, symbolic expression for the ... > determinant of a matrix with a given dimension. ... Scientific studies have shown that fully 98.7% of the time when ... (comp.soft-sys.matlab) - Re: While Im calculating Determinant; What Im doing exactly.
... for the determinant; ... would be hypervolume, but it is quite customary to continue calling it ... or hypervolume well after the 3rd dimension if no confusion is ... (sci.math) - Re: determinant question
... >The subspace of the set of real nxn matrices with zeros all along the ... >top row has dimension n^2-n and the determinant of every element is ... zero determinant. ... the dimension of the largest linear subspace of M_nall of whose ... (sci.math) - Re: Symbolic determinant, C output
... > determinant of a matrix with a given dimension. ... If you really really REALLY wants a symbolic expression for the ... use a recursive formulation of the cofactor expansion of determinants. ... So unless this question is based on some programming excercise ... (comp.soft-sys.matlab) |
|