You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > Matrix.Determinant Method
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.Determinant Method

Determinant of squared matrix.

Pascal
function Determinant(MtxType: TMtxType = mtGeneral): double; overload;

Calculate the determinant of squared real matrix. An exception is raised if the calling matrix Complex property is true.

var A: Matrix; b: double; begin A.SetIt(2,2,false,[1,2, 2,4]); // 2x2, not complex matrix b := A.Determinant; // 4 + 4 = 8 end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!