Skip to content

Commit

Permalink
Experimentation with gaussian_product_center
Browse files Browse the repository at this point in the history
tried to reduce the allocations, didn't really have an effect
  • Loading branch information
rpmuller committed Apr 7, 2021
1 parent 8b2f1ca commit 28b63bf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/OneInts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ function gaussian_product_center(a::PGBF,b::PGBF)
return (a.expn*[a.x,a.y,a.z]+b.expn*[b.x,b.y,b.z])/(a.expn+b.expn)
end

function gaussian_product_center(aexpn,ax,ay,az,
bexpn,bx,by,bz)
return (aexpn*[ax,ay,az]+bexpn*[bx,by,bz])/(aexpn+bexpn)
function gaussian_product_center(aexpn,ax,ay,az,bexpn,bx,by,bz)
return (aexpn*[ax,ay,az]+bexpn*[bx,by,bz])/(aexpn+bexpn)
end

function overlap1d(la,lb,ax,bx,gamma)
Expand Down

0 comments on commit 28b63bf

Please sign in to comment.