Skip to content

Commit

Permalink
make f2 output an array
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoRenaud committed Dec 5, 2024
1 parent 69bb397 commit 91cfde4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 67 deletions.
66 changes: 0 additions & 66 deletions .github/workflows/build_osx.yml

This file was deleted.

3 changes: 2 additions & 1 deletion qmctorch/utils/algebra_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import torch
import numpy as np
from scipy.special import factorial2 as f2

def btrace(M):
Expand Down Expand Up @@ -53,7 +54,7 @@ def double_factorial(input):
List: values of the double factorial
"""
output = f2(input)
return [1 if o==0 else o for o in output]
return np.array([1 if o==0 else o for o in output])


class BatchDeterminant(torch.autograd.Function):
Expand Down

0 comments on commit 91cfde4

Please sign in to comment.