smult method

void smult(
  1. double s
)

Matrix-scalar multiplication

Implementation

void smult(double s) {
  for (int i = 0; i < elements.length; i++) {
    elements[i] *= s;
  }
}