Closed jofrevalles closed 1 year ago
Merging #50 (4ba28a8) into master (cee74dc) will increase coverage by
0.39%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #50 +/- ##
==========================================
+ Coverage 79.96% 80.36% +0.39%
==========================================
Files 11 11
Lines 594 606 +12
==========================================
+ Hits 475 487 +12
Misses 119 119
Impacted Files | Coverage Δ | |
---|---|---|
src/TensorNetwork.jl | 88.59% <100.00%> (+0.99%) |
:arrow_up: |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
The function is ready to merge. I added one test for a TensorNetwork
with tensors that have the same labels
and works fine.
However, I don't know why Julia nightly
is failing now in all our runs.
Great! Just some small requests and I'll approve it.
mmm strange error, but nightly is unstable. I'm gonna see if this still happens with v1.9.
This PR introduces a new
Base.replace!
function for theTensorNetwork
type (issue #48). The function allows users to replace an existingTensor
within aTensorNetwork
with a newTensor
, provided that the newTensor
haslabels
that are a permutation of the oldTensor
'slabels
.The implementation ensures that the
TensorNetwork
'sinds
field is properly updated to maintain consistency within the network.Example:
This addition enhances the flexibility of the
TensorNetwork
type and allows users to perform in-place modifications of tensor networks more efficiently.