ee
This commit is contained in:
@@ -25,7 +25,7 @@ if __name__ == "__main__":
|
||||
x = [[1], [-1]] # 注意储存形式,单独一列的相量,每个数字都要中括号
|
||||
|
||||
print("Norm of x with v=1:", Norm(x, 1))
|
||||
print("Norm of x with v=inf:", Norm(x, float("inf")))
|
||||
print("Norm of x with v=inf:", Norm(x, float("inf"))) # 1 1范数;2 2范数;float('inf') 无穷范数
|
||||
print("Norm of x with v=2:", Norm(x, 2))
|
||||
print("Dot product of A and x:", Dot(A, x))
|
||||
print("Norm of Ax with v=2:", Norm(Dot(A, x), 2))
|
||||
|
||||
Reference in New Issue
Block a user