Skip to content

Commit

Permalink
Don't allocate memory for eigendecomposition under COMPUTATION_ACTION
Browse files Browse the repository at this point in the history
  • Loading branch information
bredelings committed Feb 13, 2024
1 parent 1a5d3ba commit 33c0534
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libhmsbeagle/CPU/BeagleCPUImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,9 @@ int BeagleCPUImpl<BEAGLE_CPU_GENERIC>::createInstance(int tipCount,
else
kFlags |= BEAGLE_FLAG_THREADING_NONE;

if (kFlags & BEAGLE_FLAG_EIGEN_COMPLEX)
if (preferenceFlags & BEAGLE_FLAG_COMPUTATION_ACTION)
gEigenDecomposition = nullptr;
else if (kFlags & BEAGLE_FLAG_EIGEN_COMPLEX)
gEigenDecomposition = new EigenDecompositionSquare<BEAGLE_CPU_EIGEN_GENERIC>(kEigenDecompCount,
kStateCount,kCategoryCount,kFlags);
else
Expand Down

0 comments on commit 33c0534

Please sign in to comment.