BioInt  1.02.00
BioInt: An integrative biological object-oriented application framework and interpreter
BioMatrix.h
Go to the documentation of this file.
00001 /****************************************************************************
00002 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00003 The BioBhasha : A Programming Language for Biologist
00004 Version 1.0 (19th December 2001)
00005 Dr. Prasad, B.V.L.S.
00006 Contact: prasadbvls@helixgenomics.com
00007 Version 1.1 (23th January 2003)
00008 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00009 *****************************************************************************/
00010 
00011 #ifndef BIOMATRIX_H
00012 #define BIOMATRIX_H
00013 
00014 using namespace std;
00015 #include <vector>
00016 #include <iostream>
00017 #include <fstream>
00018 #include <math.h>
00019 #include <cstdlib>
00020 
00021 class BioMatrix
00022 {
00023 
00024        float** array;
00025         int rows_;
00026         int cols_;
00027        friend bool operator >(const BioMatrix& , const BioMatrix&);
00028        friend bool operator <(const BioMatrix& , const BioMatrix&);
00029        friend bool operator ==(const BioMatrix& , const BioMatrix&);
00030 
00031 public:
00032        BioMatrix();
00033         ~BioMatrix();
00034        BioMatrix( int rows, int cols );
00035        BioMatrix( const BioMatrix & rhs );
00036         BioMatrix& operator = (const BioMatrix& );
00037        float* operator[]( int row ) const ;
00038        int getNumberOfRows( ) const;
00039        int getNumberOfColumns( ) const;
00040         void setRowsAndColumns(int rows, int cols);
00041 
00042       friend BioMatrix operator*(const BioMatrix&, const BioMatrix& );
00043 
00044         BioMatrix getTransposedMatrix();
00045 /*  vector<double> getColumnMeans();
00046   vector<double> getColumn(int x);
00047   double getDeterminant();
00048   BioMatrix getMinor(int i,int j);
00049   BioMatrix getAdjointMatrix();
00050   BioMatrix getInverseMatrix();
00051   vector<double> & operator[]( int row );
00052 */
00053         void showMatrix(ostream& = cout);
00054         void setIdentity();
00055         void setValue(int row, int col, float val); //Set the value (val) in the matrix at particular row and col index
00056 };
00057 
00058 
00059 #endif
00060 
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines