-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -224,6 +224,7 @@ export | |
|, | ||
~, | ||
:, | ||
⊗, | ||
A_ldiv_B!, | ||
A_ldiv_Bc, | ||
A_ldiv_Bt, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,6 +110,7 @@ fld{T<:Real}(x::T, y::T) = convert(T,round((x-mod(x,y))/y)) | |
# operator alias | ||
const % = rem | ||
.%(x::Real, y::Real) = x%y | ||
const ⊗ = kron | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
StefanKarpinski
Member
|
||
|
||
# mod returns in [0,y) whereas mod1 returns in (0,y] | ||
mod1{T<:Real}(x::T, y::T) = y-mod(y-x,y) | ||
|
@@ -396,6 +397,7 @@ export | |
|>, | ||
<|, | ||
~, | ||
⊗, | ||
colon, | ||
hcat, | ||
vcat, | ||
|
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
3 comments
on commit 0625671
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.
That easy, huh?
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.
You're not cross, are you?
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.
Is someone collecting @jiahao's puns for a future Julia joke book?
I'm not convinced this alias should be defined by default. It may be better to allow users to choose their own meaning for ⊗.