18 #ifndef QGSRASTERMATRIX_H
19 #define QGSRASTERMATRIX_H
57 QgsRasterMatrix(
int nCols,
int nRows,
float* data,
double nodataValue );
62 bool isNumber()
const {
return ( mColumns == 1 && mRows == 1 ); }
63 double number()
const {
return mData[0]; }
66 float* data() {
return mData; }
72 void setData(
int cols,
int rows,
float* data,
double nodataValue );
75 int nRows()
const {
return mRows; }
113 bool twoArgumentOperation( TwoArgOperator op,
const QgsRasterMatrix& other );
115 bool oneArgumentOperation( OneArgOperator op );
116 bool testPowerValidity(
double base,
double power );
119 #endif // QGSRASTERMATRIX_H
void setNodataValue(double d)
bool isNumber() const
Returns true if matrix is 1x1 (=scalar number)
double ANALYSIS_EXPORT power(double a, int b)
power function for integer coefficients
double nodataValue() const