home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 March / VPR9703A.ISO / VPR_DATA / DOGA / SOURCES / POLYEDIT.LZH / MATLIB / _MATCLAS.H < prev    next >
C/C++ Source or Header  |  1996-02-13  |  624b  |  44 lines

  1. /*
  2.  *        行列演算ライブラリ
  3.  *
  4.  *        1994.6.5        Copyright T.Kobayashi
  5.  */
  6.  
  7. #define    MATRIXCLASS
  8.  
  9. #ifndef    ML
  10. #include "ml.h"
  11. #endif
  12.  
  13. #ifndef    MATRIX
  14. #include "matrix.h"
  15. #endif
  16.  
  17. #ifndef    VECTOR
  18. #include "vector.h"
  19. #endif
  20.  
  21. typedef    struct    {
  22.     Object    obj ;
  23.     Matrix    mat ;
  24. }
  25.     MatrixClass ;
  26.  
  27. typedef    struct    {
  28.     Object    obj ;
  29.     Vector    vec ;
  30. }
  31.     VectorClass ;
  32.  
  33. #ifdef DYNAMIC
  34. extern    void    MatrixClassInit( void );
  35. #else
  36. #define    MatrixClassInit()    __MatrixClassInit(NULL);
  37. #endif
  38.  
  39. /*    matclass.c    */
  40. extern    int        __MatrixClassInit( void* );
  41.  
  42. /*    setvec.c    */
  43. extern    VectorClass    *StackAllocVector( DataStruct* );
  44.