pymem3dg.util.rowwiseScaling

pymem3dg.util.rowwiseScaling(scaling: ndarray[Any, dtype[float64]], matrix: ndarray[Any, dtype[float64]])

rowwise scaling

Parameters:
  • scaling (array) – vector of scaling coefficient

  • matrix (ndarray) – matrix to be scaled, dimension = 2 or 1

Returns:

scaled matrix

Return type:

ndarray