class ML: Utility methods
// this is empty if either height or width is 0.
private boolean isEmpty()
{
return h==0 || w == 0;
}
// this is scalar if both height and width are 1.
private boolean isScalar()
{
return h==1 && w == 1;
}
Previous slide
Next slide
Back to first slide
View graphic version