scaled method

FLeftMatrix scaled(
  1. double factor
)

Implementation

FLeftMatrix scaled(double factor) {
  FLeftMatrix newMat = FLeftMatrix.zero(nColumns, nRows);
  for (int i = 0; i < nRows; ++i) {
    Float32x4List currentRow = rowsData[i];
    Float32x4List resultRow = newMat.rowsData[i];

    for (int j = 0; j < currentRow.length; ++j) {
      resultRow[j] = currentRow[j].scale(factor);
    }
  }
  return newMat;
}