3 inline comple
det(
const zhemat2& A)
5 return A(0,0)*A(1,1) -A(1,0)*A(1,0);
10 inline zhemat2
inv(
const zhemat2& A)
12 const comple Adet(
det(A) );
14 Ainv(0,0)= A(1,1)/Adet;
15 Ainv(1,0)=-A(1,0)/Adet; Ainv(1,1)= A(0,0)/Adet;
25 inline comple
det(
const zhemat3& A)
28 +A(0,0)*A(1,1)*A(2,2) -A(0,0)*A(2,1)*A(2,1)
29 +A(1,0)*A(2,1)*A(2,0) -A(1,0)*A(1,0)*A(2,2)
30 +A(2,0)*A(1,0)*A(2,1) -A(2,0)*A(1,1)*A(2,0);
35 inline zhemat3
inv(
const zhemat3& A)
37 const comple Adet(
det(A) );
39 Ainv(0,0) =(A(1,1)*A(2,2)-A(2,1)*A(2,1))/Adet;
40 Ainv(1,0) =(A(2,1)*A(2,0)-A(1,0)*A(2,2))/Adet;
41 Ainv(1,1) =(A(0,0)*A(2,2)-A(2,0)*A(2,0))/Adet;
42 Ainv(2,0) =(A(1,0)*A(2,1)-A(1,1)*A(2,0))/Adet;
43 Ainv(2,1) =(A(1,0)*A(2,0)-A(0,0)*A(2,1))/Adet;
44 Ainv(2,2) =(A(0,0)*A(1,1)-A(1,0)*A(1,0))/Adet;
comple det(const zhemat2 &A)
zhemat2 inv(const zhemat2 &A)