-
Notifications
You must be signed in to change notification settings - Fork 56
DiagonalTensorMap constructor rrule #208
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
Changes from 24 commits
2b79107
f275175
2cf4cb4
c43535f
4653113
c81e43c
41d1113
53b399c
8b51b8b
2905c0b
79a38b6
689b4ea
e1fe3be
ccb7c93
f8ca1fd
98dea08
58904f7
5eec371
9e834c4
a5ba340
3e45ff2
f9ed03e
b195929
643aba7
06d3784
2732f66
455bcc2
8c08866
618aaad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,9 +60,13 @@ include("spaces.jl") | |
| include("tensors.jl") | ||
| include("diagonal.jl") | ||
| include("planar.jl") | ||
| if !(Sys.isapple()) # TODO: remove once we know why this is so slow on macOS | ||
| include("ad.jl") | ||
| # TODO: remove once we know AD is slow on macOS CI | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a very strange construct. Why not if !(Sys.isapple() && get(ENV, "CI", false))
include("ad.jl")
end
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's mostly taken from here.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok,
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry I missed this, I tried |
||
| test_ad = try | ||
| !(Sys.isapple() && ENV["CI"] == "true") | ||
| catch | ||
| true | ||
| end | ||
| test_ad && include("ad.jl") | ||
| include("bugfixes.jl") | ||
| Tf = time() | ||
| printstyled("Finished all tests in ", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this is only necessary for
f === sqrt? Alternatively, you could writeThis will create a purely positive
DiagonalTensorMapin the real case.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just realized that there literally is a
randexpfunction to do that in one go... Thanks for the suggestion, I'll change that.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think
randexpworks with complex numbers.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But for complex numbers I don't need them to be positive, so I can just use
randn!. I can definitely change it if you want, anything goes I guess?