Inverse of a matrix and matrix determinant routines
Open Source Solid Modeling CAD
Brought to you by:
brlcad
This is a new implementation of the bn_mat_inverse() and bn_mat_determinant routines in src/libbn/mat.c of BRL-CAD; with the following amendments:
bn_mat_inverse:
bn_mat_determinant:
Here are the test results comparing the old bn_mat_determinant to the new:
Old_determinant Test:
Det: -3291.00
real 1m5.151s
user 1m5.081s
sys 0m0.019s
New_determinant Test:
Det: -3291.00
real 0m54.921s
user 0m54.815s
sys 0m0.054s
here is another summary:
Summary:
Wrote Tests to compare Inverse of Old matrix inverse routine and new_matrix Inverse routine which returned the following results:
Old Inverse matrix Test:
real 8m7.388s
user 8m6.620s
sys 0m0.223s
New Inverse matrix Test:
real 4m13.705s
user 4m12.766s
sys 0m0.212s