Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@YannCabanes
Copy link
Collaborator

Improve Siegel inner_product computation noting that:

<v, w>_{O}
= 1/2 * trace((I - O O^{H})^{-1} v (I - O^{H} O)^{-1} w^{H})
+ 1/2 * trace((I - O O^{H})^{-1} w (I - O^{H} O)^{-1} v^{H})
= Re(trace((I - O O^{H})^{-1} v (I - O^{H} O)^{-1} w^{H}))

Indeed,

  trace((I - O O^{H})^{-1} w (I - O^{H} O)^{-1} v^{H})
= trace(w (I - O^{H} O)^{-1} v^{H} (I - O O^{H})^{-1})  #Trace commutativity
= trace(((I - O O^{H})^{-1} v (I - O^{H} O)^{-1} w^{H})^{H})
= conjugate(trace((I - O O^{H})^{-1} v (I - O^{H} O)^{-1} w^{H}))

@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

Merging #1892 (16e11af) into master (3b3e5a1) will increase coverage by 0.06%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1892      +/-   ##
==========================================
+ Coverage   91.17%   91.23%   +0.06%     
==========================================
  Files         226      226              
  Lines       19584    19580       -4     
==========================================
+ Hits        17854    17861       +7     
+ Misses       1730     1719      -11     
Flag Coverage Δ
autograd 88.09% <100.00%> (+0.01%) ⬆️
numpy 89.76% <100.00%> (+0.05%) ⬆️
pytorch 86.49% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
geomstats/geometry/siegel.py 98.97% <100.00%> (-0.02%) ⬇️

... and 4 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@YannCabanes
Copy link
Collaborator Author

Hello @luisfpereira,
Could you review this PR please?

@luisfpereira luisfpereira self-requested a review October 14, 2023 07:49
@YannCabanes
Copy link
Collaborator Author

Hello @luisfpereira and @ninamiolane,
Could you merge this PR please?

@luisfpereira
Copy link
Collaborator

Thanks @YannCabanes!

@luisfpereira luisfpereira merged commit 4d0ff59 into geomstats:master Nov 2, 2023
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.

2 participants