//----------------------------------------- // Element Functions //----------------------------------------- double& SubMatrixWriteAccess::writeElement(const unsigned int row, const unsigned int column) { if (row >= getRows() || column >= getColumns()) { error("Matrix::element : Subscript out of range\n"); return getDataPointer()[0]; } return getDataPointer()[(row+getRowStart())*(getColumnsOrig()) + (column+getColumnStart())]; }
void Move::print() const { std::cout << "(" << (int)getRowStart() << "," << (int)getColStart() << ") to (" << (int)getRowEnd() << "," << (int)getColEnd() << ")" << std::endl; }