diff --git a/.github/workflows/defender-for-devops.yml b/.github/workflows/defender-for-devops.yml new file mode 100644 index 0000000..d7c973b --- /dev/null +++ b/.github/workflows/defender-for-devops.yml @@ -0,0 +1,82 @@ +/* + * GenericMatrix.hxx + * + * Created on: 13 April. 2013 + * Authors: CDMATH + */ + +#ifndef GENERICMATRIX_HXX_ +#define GENERICMATRIX_HXX_ + + +/** + * Cell class is defined by + * - number of rows + * - number of columns + */ + +#include + +#include "DoubleTab.hxx" + +class GenericMatrix +{ + public: //---------------------------------------------------------------- + /** + * default constructor + */ + GenericMatrix ( void ) ; + + /** + * destructor + */ + virtual ~GenericMatrix ( void ) ; + + /** + * return number of rows in this matrix + * @return _numberOfRows + */ + int getNumberOfRows ( void ) const ; + + /** + * return number of columns in this matrix + * @return _numberOfColumns + */ + int getNumberOfColumns ( void ) const ; + + const DoubleTab& getValues( void ) const ; + + DoubleTab getValues( void ) ; + + void setValues(const DoubleTab& values) ; + + virtual double operator ()( int i, int j ) const = 0; + + bool isSymmetric() const ; + + bool isSquare() const ; + + bool isSparseMatrix( void ) const ; + + int coefficient(int index) const ; + + void view() const ; + + protected: //---------------------------------------------------------------- + + /* + * The number of rows. + */ + int _numberOfRows ; + + /* + * The number of columns. + */ + int _numberOfColumns ; + + bool _isSparseMatrix ; + + DoubleTab _values ; +}; + +#endif /* GENERICMATRIX_HXX_ */