-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (58 loc) · 1.42 KB
/
defender-for-devops.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
lib/parse.js/*
* 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 <iostream>
#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_ */