-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimization of trivial MulAddMap evaluate!
The (0,1) AttachDirichletMap is just (A,b,c) -> c . So we can avoid `mul!` in this case (but keep the `copyto!` for type stability when c is real but b and d=cache[2] are complex). I believe this is safe regarding type stability since `return_cache(::AttachDirichletMap)` uses an eager `Base.*` to create the `cache`, it does not rely on this evaluate.
- Loading branch information
1 parent
d443e8c
commit e206e08
Showing
2 changed files
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters