Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge developments in preparation for release v0.4 #121

Merged
merged 59 commits into from
Nov 13, 2023
Merged

Merge developments in preparation for release v0.4 #121

merged 59 commits into from
Nov 13, 2023

Conversation

mofeing
Copy link
Member

@mofeing mofeing commented Nov 12, 2023

No description provided.

mofeing and others added 30 commits September 26, 2023 14:07
* Remove `meta` field from `Tensor`

* Refactor type of `Tensor.inds` field to `ImmutableVector`

Reduce inference-time overhead due to `Tuple` specializations

* Avoid `TensorNetwork` specialization on `Makie.plot` methods

* Fix annotation of hyperindices on `plot`

* Fix hyperindex labelling
Semantics were not very clear. Use `length(tensors(tn))` instead.
`copy` is not acting as expected and the copied TN has the `.indices` field mutated.
mofeing and others added 9 commits November 3, 2023 21:58
Move "class" to dual `TensorNetwork`/`AbstractTensorNetwork` types.
Closes Consider a `Classes.jl` fork or build same functionality on top of other packages #108
…#120)

* Encode `TensorNetwork` graph using a incidence matrix

* Optimize time, memory of `TensorNetwork` constructor

* Fix `SparseArrays.findnz` on `IncidenceMatrix`

* Replace `Bijections` for `BijectiveDicts`

* Replace `IncidenceMatrix` for dictionaries

* Refactor code and tests

* Fix `Makie` code

* Refactor `ChainRulesTestUtils.rand_tangent` to new `TensorNetwork` fields

* Refactor `ChainRulesCore` rules to new `TensorNetwork` fields

* Fix order of `tensors` when extracting them from `IdDict`

Elements of an `AbstractDict` have no guarantee to be in any order. This was affecting the order in which the `tensors` method was returning the tensors, and thus, doing weird things when computing the jacobian.

* Relax `Vector` eltype specialization in `rand_tangent`

* Fix Makie code to new `tensors(tn)` order

* Fix order stability of elements in `arrays`
`smooth_annotation` function  for code correctness
@mofeing mofeing added this to the 0.4 milestone Nov 12, 2023
@mofeing mofeing self-assigned this Nov 12, 2023
Copy link

codecov bot commented Nov 12, 2023

Codecov Report

Attention: 36 lines in your changes are missing coverage. Please review.

Comparison is base (ad199f7) 80.73% compared to head (6ed272b) 88.18%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #121      +/-   ##
==========================================
+ Coverage   80.73%   88.18%   +7.45%     
==========================================
  Files          14       10       -4     
  Lines         929      584     -345     
==========================================
- Hits          750      515     -235     
+ Misses        179       69     -110     
Files Coverage Δ
ext/TenetChainRulesTestUtilsExt.jl 100.00% <100.00%> (ø)
ext/TenetFiniteDifferencesExt.jl 100.00% <100.00%> (ø)
src/Helpers.jl 91.66% <ø> (-1.67%) ⬇️
src/Tenet.jl 100.00% <ø> (ø)
src/Tensor.jl 88.99% <100.00%> (+0.01%) ⬆️
src/Transformations.jl 98.41% <100.00%> (+0.91%) ⬆️
ext/TenetMakieExt.jl 98.24% <95.65%> (-1.76%) ⬇️
src/Numerics.jl 92.20% <93.87%> (+3.49%) ⬆️
ext/TenetChainRulesCoreExt.jl 75.00% <68.42%> (-11.37%) ⬇️
src/TensorNetwork.jl 75.00% <74.25%> (-8.73%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

* Implement LinearAlgebra.lu decompoisition

* Add tests for the new LinearAlgebra.lu function

* Replace legacy labels for inds function

* Refactor LU decomposition

* Fix undef var in `factorinds`

* Refactor QR decomposition

* Update docstrings of `qr`,`lu`

* Refactor SVD factorization

* Fix typo

* Add factorizations to docs

---------

Co-authored-by: Sergio Sánchez Ramírez <[email protected]>
Copy link
Contributor

@Todorbsc Todorbsc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything seems nice to me. The only improvements I could comment (and I think they are not necessary) are:

  • Solve the CI / Documentation (push) Github Action error (link)
  • Add tests for some methods to increase the code coverage percentage

@mofeing
Copy link
Member Author

mofeing commented Nov 13, 2023

  • Solve the CI / Documentation (push) Github Action error (link)

Yeah, I'm not sure why this is happening but it should be solved when merging to master.

  • Add tests for some methods to increase the code coverage percentage

Actually, this PR increases "global" coverage by a 8%. And it's approaching a 90% which is high.

@arturgs arturgs merged commit 9ac048d into master Nov 13, 2023
8 of 9 checks passed
@arturgs arturgs deleted the develop branch November 13, 2023 14:39
@mofeing mofeing restored the develop branch November 15, 2023 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants