Matrix mit Python Numpy [[3 1 1 2] [5 5 3 4] [2 0 6 2] [1 3 2 1]] Ich möchte das Gegenteil von finden. Der Algorithmus soll die Sweep-Methode verwenden.
import math import numpy as np
A = np.array([[3,1,1,2],[5,5,3,4],[2,0,6,2],[1,3,2,1]])
print ('Originalmatrix A ist') print(A) print( )
Ich kann soweit schreiben.
Vielen Dank.
Recommended Posts