not easily. I tried both unsigned int for dims[], or changing type of nRows()/nCols(), but both get complicated. I think the cast is not that bad, from what I read it's no change in speed.