24void mpower(
const double a[9],
double c[9])
33 memcpy(&x[0], &a[0], 9U *
sizeof(
double));
40 if ((absx21 > absx11) && (absx21 > absx31)) {
49 }
else if (absx31 > absx11) {
65 if (fabs(x[5]) > fabs(x[4])) {
82 absx11 = (x[1] * x[5] - x[2]) / x[8];
83 absx21 = -(x[1] + x[7] * absx11) / x[4];
84 c[p1] = ((1.0 - x[3] * absx21) - x[6] * absx11) / x[0];
87 absx11 = -x[5] / x[8];
88 absx21 = (1.0 - x[7] * absx11) / x[4];
89 c[p2] = -(x[3] * absx21 + x[6] * absx11) / x[0];
93 absx21 = -x[7] * absx11 / x[4];
94 c[p3] = -(x[3] * absx21 + x[6] * absx11) / x[0];
void mpower(const double a[9], double c[9])
Calculates the inverse of a 3x3 matrix.
A MATLAB Coder helper function for calculating the inverse of a 3x3 matrix.
Provides definitions and utility functions for non-finite floating-point values.