Skip to content

Commit

Permalink
rank zero QS
Browse files Browse the repository at this point in the history
  • Loading branch information
horta committed May 11, 2018
1 parent dba0ab0 commit 59fb36f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion numpy_sugar/__init__.py
Expand Up @@ -13,7 +13,7 @@
from .testit import test

__name__ = "numpy-sugar"
__version__ = "1.2.3"
__version__ = "1.2.4"
__author__ = "Danilo Horta"
__author_email__ = "horta@ebi.ac.uk"

Expand Down
6 changes: 5 additions & 1 deletion numpy_sugar/linalg/cho.py
@@ -1,4 +1,4 @@
from numpy import asarray
from numpy import asarray, empty


def cho_solve(L, b):
Expand All @@ -24,4 +24,8 @@ def cho_solve(L, b):
from scipy.linalg import cho_solve as sp_cho_solve
L = asarray(L, float)
b = asarray(b, float)
if L.size == 0:
if b.size != 0:
raise ValueError("Dimension mismatch between L and b.")
return empty(b.shape)
return sp_cho_solve((L, True), b, check_finite=False)
2 changes: 1 addition & 1 deletion numpy_sugar/linalg/dot.py
Expand Up @@ -50,7 +50,7 @@ def ddot(L, R, left=True, out=None):
else:
if out is None:
out = copy(L)
return multiply(out, R, out=out)
return multiply(L, R, out=out)


def cdot(L, out=None):
Expand Down

0 comments on commit 59fb36f

Please sign in to comment.