-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
triangular solver #91
Comments
Thanks for the request! Do you have an executable example of the function you'd like to work please? Or can you perhaps point towards the particular functions / libraries you'd like to see supported? |
Closing this issue as no further info provided recently - please feel free to open with more specific information about the request. |
I have the same request. Here is a gist to replicate the need import numpy as np
from scipy import linalg
from numba import njit
# Build 3 random symmetric positive matrices
np.random.seed(0)
A = np.random.randn(3, 30, 30)
A = 0.5 * (A @ np.swapaxes(A, -1, -2))
B = np.random.randn(3, 30, 10)
AinvB = np.linalg.solve(A, B)
@njit
def cholesky_solve(A, B):
# Compute the Cholesky decomposition
L = np.linalg.cholesky(A)
AinvB = np.empty((3, 30, 10))
for i in range(3):
AinvB[i, :, :] = linalg.cho_solve(
(L[i], True), B[i]
)
return AinvB
np.testing.assert_allclose(cholesky_solve(A, B), np.linalg.solve(A, B)) it would be great to see this working. Thanks |
I transferred this in from |
@gmarkall @stuartarchibald any chance this can be looked into soon? thanks |
Feature request
Hi,
I would like to be able to solve symmetric positive-definite linear systems in Numba using Cholesky factorization. While the Cholesky factorization is implemented, there is no triangular solver! It would be wonderful if a triangular solver could be implemented so that I can take advantage of the Cholesky function. Thanks.
Sam
The text was updated successfully, but these errors were encountered: