I have a list, I would like to find the min. values in each row and do calculations: row - row.min - 1.
This is what I tried
import numpy as np
list = [[1.2886089553007253e-15, 3.283665029781338e-16, 0.0, 3.4027301260438933e-16],\
[3.047580716284324e-15, 1.3787915767152193e-15, 3.505982818951592e-16, 0.0]]
array = np.asarray(list)
result = array-array.min(axis=0)-1
print(result)
This is the result I got,
[[-1. -1. -1. -1.]
[-1. -1. -1. -1.]]
But I hope to get
[[1.2886089553007253e-15 -0.0-1, 3.283665029781338e-16 -0.0-1, 0.0 -0.0-1, 3.4027301260438933e-16 -0.0-1],
[3.047580716284324e-15 -0.0-1, 1.3787915767152193e-15 -0.0-1, 3.505982818951592e-16 -0.0-1, 0.0 -0.0-1]]
So it would be
[[-0.9999999999999987, -0.9999999999999997, -1, -0.9999999999999997],
[-0.999999999999997, -0.9999999999999987, -0.9999999999999997, -1]]
How can I make it?