Skip to content

Commit

Permalink
added function clear\!
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsignorelli committed Mar 29, 2024
1 parent ea3f35e commit bd844d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/GTPSA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export
scalar,
setGTPSA!,
getGTPSA,
clear!,

# Temporaries:
@FastGTPSA,
Expand Down
9 changes: 9 additions & 0 deletions src/operators.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# -- clear --
function clear!(t::TPS)
mad_tpsa_clear!(t.tpsa)
end

function clear!(t::ComplexTPS)
mad_ctpsa_clear!(t.tpsa)
end

# -- zero --
function zero(t::TPS)::TPS
return TPS(mad_tpsa_new(t.tpsa, MAD_TPSA_SAME))
Expand Down

0 comments on commit bd844d4

Please sign in to comment.