I want to multiply the first three numbers in an array with (-1) in a list of n arrays. The numpy arrays are stored through out a for loop in a list, see list below.
internal_force_list.append(internal_forces)
the list internal_force_list output looks like this
[
array([
[-6], [-2.5], [7.5], [6.0], [2.5], [0.18]
]),
array([
[8.27], [0.08], [-0.18], [-8.2], [-0.08], [0.0]
])
]
and should look like this in the end:
[
array([
[6], [2.5], [-7.5], [6.0], [2.5], [0.18]
]),
array([
[-8.27], [-0.08], [0.18], [-8.2], [-0.08], [0.0]
])
]
How do I solve this?