Integrate Refactor solver sources and dual MSVC CMake builds
This commit is contained in:
@@ -228,17 +228,4 @@ double Determinant(const Tensor& j) {
|
||||
j[0][1] * (j[1][0] * j[2][2] - j[1][2] * j[2][0]) +
|
||||
j[0][2] * (j[1][0] * j[2][1] - j[1][1] * j[2][0]);
|
||||
}
|
||||
Tensor Inverse(const Tensor& j, double determinant) {
|
||||
Tensor inverse{};
|
||||
for (std::size_t i = 0; i < 3; ++i)
|
||||
for (std::size_t d = 0; d < 3; ++d) {
|
||||
const auto r1 = (d + 1U) % 3U;
|
||||
const auto r2 = (d + 2U) % 3U;
|
||||
const auto c1 = (i + 1U) % 3U;
|
||||
const auto c2 = (i + 2U) % 3U;
|
||||
inverse[i][d] =
|
||||
(j[r1][c1] * j[r2][c2] - j[r1][c2] * j[r2][c1]) / determinant;
|
||||
}
|
||||
return inverse;
|
||||
}
|
||||
} // namespace fesa::hex8_internal
|
||||
|
||||
Reference in New Issue
Block a user