Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
622 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef LINEAR_SOLVER_H
  8. #define LINEAR_SOLVER_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. // Take the determinant of a matrix.
  13. // NOTE: ONLY SUPPORTS 2x2, 3x3, and 4x4
  14. extern float Det( float *matrix, int rows );
  15. // solve a system of linear equations using Cramer's rule (only supports up to 4 variables due to limits on Det())
  16. extern float *SolveCramer( const float *matrix, int rows, int columns );
  17. #endif // LINEAR_SOLVER_H