-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a single tensor version of the complex() procedure. Note that you while can also convert a real tensor into a complex tensor by means of the `asType` procedure, this has the advantage that you can use the same function to combine a real and imaginary tensor or a single real tensor into a complex tensor. Another advantage is that this function will automatically use the right Complex type for the output tensor, leading to more generic code. That being said, `asType` can still be useful when you want to control the type of the Complex tensor. * Accept Tensor[int] as inputs of the complex() procedures This avoids unnecessary intermediate conversions from int to float and then to complex.
- Loading branch information
1 parent
d7b1fff
commit 282cd70
Showing
2 changed files
with
67 additions
and
12 deletions.
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