home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 March / Chip_1998-03_cd.bin / zkuste / matemat / Vyssi / MATH2.ZIP / cppbuild / Matrix.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-31  |  4.2 KB  |  102 lines

  1. //----------------------------------------------------------------------------
  2. // Matrix.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
  3. // From: Matrix.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef MatrixHPP
  6. #define MatrixHPP
  7. //----------------------------------------------------------------------------
  8. #include <Dialogs.hpp>
  9. #include <Vector.hpp>
  10. #include <DCommon.hpp>
  11. #include <System.hpp>
  12. namespace Matrix
  13. {
  14. //-- type declarations -------------------------------------------------------
  15. class __declspec(delphiclass) TMatrix;
  16. class __declspec(pascalimplementation) TMatrix : public System::TObject
  17. {
  18.     typedef System::TObject inherited;
  19.     
  20. private:
  21.     long FNCol;
  22.     long FNRow;
  23.     void *Mat;
  24.     int FPrecis[2];
  25.     double __fastcall GetVal(long p0, long p1);
  26.     void __fastcall SetVal(long p0, long p1, double p2);
  27.     int __fastcall GetFPrecis(int p0);
  28.     void __fastcall SetFPrecis(int p0, int p1);
  29.     
  30. public:
  31.     __fastcall TMatrix(long p0, long p1);
  32.     __fastcall virtual ~TMatrix(void);
  33.     __property double Elem[long ix][long iy] = {read=GetVal, write=SetVal};
  34.     bool __fastcall Add(TMatrix* p0);
  35.     void __fastcall CopyFrom(TMatrix* p0, int p1, int p2, int p3, int p4, int p5, int p6);
  36.     void __fastcall CopyFromVec(Vector::TVector* p0, int p1, int p2, int p3, int p4);
  37.     void __fastcall Fill(double p0);
  38.     HIDESBASE void __fastcall Free(void);
  39.     bool __fastcall Invert(void);
  40.     bool __fastcall LoadFromFile( System::AnsiString p0);
  41.     __property long NrOfColumns = {read=FNCol, nodefault};
  42.     __property long NrOfRows = {read=FNRow, nodefault};
  43.     __property int Precision[int Index] = {read=GetFPrecis, write=SetFPrecis};
  44.     void __fastcall MeanVar(int p0, int p1, int p2, int p3, double &p4, double &p5);
  45.     double __fastcall Median(int p0, int p1, int p2, int p3);
  46.     void __fastcall MinMax(int p0, int p1, int p2, int p3, double &p4, double &p5);
  47.     bool __fastcall Multiply(TMatrix* p0, TMatrix* p1);
  48.     bool __fastcall Resize(int p0, int p1);
  49.     void __fastcall SkewKurt(int p0, int p1, int p2, int p3, double &p4, double &p5);
  50.     void __fastcall SMult(double p0);
  51.     void __fastcall SortCols(int p0, bool p1, int p2, int p3, int p4, int p5);
  52.     void __fastcall SortRows(int p0, bool p1, int p2, int p3, int p4, int p5);
  53.     bool __fastcall StoreOnFile(int p0, int p1, int p2, int p3,  System::AnsiString p4);
  54.     bool __fastcall Subtract(TMatrix* p0);
  55.     bool __fastcall Transpose(void);
  56. };
  57.  
  58. class __declspec(delphiclass) TIntMatrix;
  59. class __declspec(pascalimplementation) TIntMatrix : public System::TObject
  60. {
  61.     typedef System::TObject inherited;
  62.     
  63. private:
  64.     long FNCol;
  65.     long FNRow;
  66.     void *Mat;
  67.     int __fastcall GetVal(long p0, long p1);
  68.     void __fastcall SetVal(long p0, long p1, int p2);
  69.     
  70. public:
  71.     __fastcall TIntMatrix(long p0, long p1);
  72.     __fastcall virtual ~TIntMatrix(void);
  73.     __property int Elem[long ix][long iy] = {read=GetVal, write=SetVal};
  74.     bool __fastcall Add(TIntMatrix* p0);
  75.     void __fastcall CopyFrom(TIntMatrix* p0, int p1, int p2, int p3, int p4, int p5, int p6);
  76.     void __fastcall Fill(int p0);
  77.     bool __fastcall LoadFromFile( System::AnsiString p0);
  78.     __property long NrOfColumns = {read=FNCol, nodefault};
  79.     __property long NrOfRows = {read=FNRow, nodefault};
  80.     void __fastcall MeanVar(int p0, int p1, int p2, int p3, double &p4, double &p5);
  81.     int __fastcall Median(int p0, int p1, int p2, int p3);
  82.     void __fastcall MinMax(int p0, int p1, int p2, int p3, int &p4, int &p5);
  83.     bool __fastcall Multiply(TIntMatrix* p0, TIntMatrix* p1);
  84.     bool __fastcall Resize(int p0, int p1);
  85.     void __fastcall SkewKurt(int p0, int p1, int p2, int p3, double &p4, double &p5);
  86.     void __fastcall SMult(int p0);
  87.     void __fastcall SortCols(int p0, bool p1, int p2, int p3, int p4, int p5);
  88.     void __fastcall SortRows(int p0, bool p1, int p2, int p3, int p4, int p5);
  89.     bool __fastcall StoreOnFile(int p0, int p1, int p2, int p3,  System::AnsiString p4);
  90.     bool __fastcall Subtract(TIntMatrix* p0);
  91.     bool __fastcall Transpose(void);
  92. };
  93.  
  94. //-- var, const, procedure ---------------------------------------------------
  95.  
  96. }    /* namespace Matrix */
  97. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  98. using namespace Matrix;
  99. #endif
  100. //-- end unit ----------------------------------------------------------------
  101. #endif    // Matrix
  102.