18 #ifndef QGSRASTERMATRIX_H 19 #define QGSRASTERMATRIX_H 21 #include "qgis_analysis.h" 75 bool isNumber()
const {
return ( mColumns == 1 && mRows == 1 ); }
76 double number()
const {
return mData[0]; }
90 void setData(
int cols,
int rows,
double *data,
double nodataValue );
93 int nRows()
const {
return mRows; }
145 bool absoluteValue();
150 double *mData =
nullptr;
151 double mNodataValue = -1;
155 double calculateTwoArgumentOp(
TwoArgOperator op,
double arg1,
double arg2 )
const;
159 bool testPowerValidity(
double base,
double power )
const;
162 #endif // QGSRASTERMATRIX_H bool isNumber() const
Returns true if matrix is 1x1 (=scalar number)
void setNodataValue(double d)
double nodataValue() const
double * data()
Returns data array (but not ownership)