Q:

Write a NumPy program to get the lower-triangular L in the Cholesky decomposition of a given array

0

Write a NumPy program to get the lower-triangular L in the Cholesky decomposition of a given array.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import numpy as np
m = np.arange(6).reshape(2,3)
print("Original matrix:")
print(m)
result =  np.trace(m)
print("Condition number of the said matrix:")
print(result)

Sample Output:

Original matrix:
[[0 1 2]
 [3 4 5]]
Condition number of the said matrix:
4

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now