-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ToricVarieties bugfix: is_effective(ToricDivisor)
It checks if a divisor is lin. equivalent to an effective divisor. But it should check if the divisor is effective.
- Loading branch information
1 parent
6607511
commit 9bbc6ab
Showing
6 changed files
with
87 additions
and
9 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
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 |
---|---|---|
@@ -1,2 +1,30 @@ | ||
@attr Bool is_trivial(tdc::ToricDivisorClass) = iszero(divisor_class(tdc)) | ||
export is_trivial | ||
|
||
|
||
@doc Markdown.doc""" | ||
is_effective(tdc::ToricDivisorClass) | ||
Determines whether the toric divisor class `tdc` is effective, that is if a toric divisor | ||
in this divisor class is linearly equivalent to an effective toric divisor. | ||
# Examples | ||
```jldoctest | ||
julia> P2 = projective_space(NormalToricVariety,2) | ||
A normal, non-affine, smooth, projective, gorenstein, fano, 2-dimensional toric variety without torusfactor | ||
julia> tdc = ToricDivisorClass(P2, [1]) | ||
A divisor class on a normal toric variety | ||
julia> is_effective(tdc) | ||
true | ||
julia> tdc2 = ToricDivisorClass(P2, [-1]) | ||
A divisor class on a normal toric variety | ||
julia> is_effective(tdc2) | ||
false | ||
``` | ||
""" | ||
@attr Bool is_effective(tdc::ToricDivisorClass) = is_effective(toric_divisor(tdc)) | ||
export is_effective |
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
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