Skip to content

changed get() and slicing #714

Open
manuschneider wants to merge 2 commits intomasterfrom
slicing
Open

changed get() and slicing #714
manuschneider wants to merge 2 commits intomasterfrom
slicing

Conversation

@manuschneider
Copy link
Collaborator

UniTensors keep their metadata (possibly with bonds removed for constant access of one element in a given dimension).
Diagonal UniTensors can be accessed by two-dimensional slicing as well now.

This fixes #397

@codecov
Copy link

codecov bot commented Nov 24, 2025

Codecov Report

❌ Patch coverage is 21.81818% with 43 lines in your changes missing coverage. Please review.
✅ Project coverage is 31.95%. Comparing base (eb3e3be) to head (7cc7ba7).
⚠️ Report is 67 commits behind head on master.

Files with missing lines Patch % Lines
include/UniTensor.hpp 10.52% 34 Missing ⚠️
src/Accessor.cpp 0.00% 5 Missing ⚠️
src/backend/Tensor_impl.cpp 60.00% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #714      +/-   ##
==========================================
+ Coverage   30.19%   31.95%   +1.75%     
==========================================
  Files         215      215              
  Lines       38335    36227    -2108     
  Branches    15474    14538     -936     
==========================================
+ Hits        11576    11577       +1     
+ Misses      24858    22749    -2109     
  Partials     1901     1901              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hunghaoti
Copy link
Collaborator

Is it possible to add some simple unit test?

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.

rowrank is modified after slicing

2 participants