function multiplyScalar(matrix, scalar) {
  for (var i = 0; i < matrix.length; i++) {
    matrix[i] *= scalar;
  }

  return matrix;
}
/**
 * Multiply matrix on scalar
 * @param scalar a number which will multiply matrix
 */
Multiply matrix on scalar
@param scalar a number which will multiply matrix
Multiply matrix on scalar @param scalar a number which will multiply matrix
function multiplyScalar(matrix, scalar) {
  for (var i = 0; i < matrix.length; i++) {
    matrix[i] *= scalar;
  }
  return matrix;
}
function multiplyScalar ( matrix , scalar ) { for ( var i = 0 ; i < matrix . length ; i ++ ) { matrix [ i ] *= scalar ; } return matrix ; }
Multiply matrix on scalar
 @param scalar a number which will multiply matrix
Multiply matrix on scalar @param scalar a number which will multiply matrix