Ignore:
Timestamp:
Apr 21, 2012, 6:58:26 PM (8 years ago)
Author:
sam
Message:

math: add inversion code for 2×2 and 3×3 matrices, and transposition
code for all matrices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/benchmark/vector.cpp

    r1139 r1257  
    5353        timer.GetMs();
    5454        for (size_t i = 0; i < MATRIX_TABLE_SIZE; i++)
    55             pf[i] = pm[i].det();
     55            pf[i] = determinant(pm[i]);
    5656        result[1] += timer.GetMs();
    5757
     
    7171        timer.GetMs();
    7272        for (size_t i = 0; i < MATRIX_TABLE_SIZE; i++)
    73             pm[i] = pm[i].invert();
     73            pm[i] = inverse(pm[i]);
    7474        result[4] += timer.GetMs();
    7575    }
Note: See TracChangeset for help on using the changeset viewer.