Skip to content

Commit

Permalink
Merge branch 'master' into wbhart-update_cxxwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
wbhart committed Feb 17, 2020
2 parents 4feee11 + 7aaeadc commit 951f971
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 22 deletions.
24 changes: 8 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,25 @@ addons:
- libmpfr-dev

language: julia
sudo: false
os:
- linux
- osx

codecov: true
coveralls: true

julia:
- 1.0
- 1.1
#- 1.1 # runs into a GC bug
- 1.2
- 1.3
- nightly
matrix:
allow_failures:
- julia: nightly
- os: osx
notifications:
- email: false
script:
- while sleep 30; do echo "still alive"; done &
- julia -e 'using Pkg; Pkg.build("Singular"); Pkg.test("Singular");'

env:
global:
Expand All @@ -42,14 +43,5 @@ jobs:
julia: 1.0
os: linux
script:
- while sleep 30; do echo "still alive"; done &
- julia --project=docs/ -e 'using Pkg; Pkg.add(PackageSpec(path=pwd())); Pkg.instantiate();'
- julia --project=docs/ docs/make.jl
after_success: skip

after_success:
# push coverage results to Coveralls
- julia --color=yes -e 'using Pkg; cd(Pkg.dir("Singular")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
# push coverage results to Codecov
- julia --color=yes -e 'using Pkg; cd(Pkg.dir("Singular")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'

- julia --color=yes --project=docs/ -e 'using Pkg; Pkg.add(PackageSpec(path=pwd())); Pkg.instantiate();'
- julia --color=yes --project=docs/ docs/make.jl
2 changes: 1 addition & 1 deletion docs/src/transExt.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The following constructors are available to create function fields and their ele
Singular.FunctionField(::Field, ::Array{String, 1}; ::Bool)
```

In case the user does not want to specify a transcendece basis the following
In case the user does not want to specify a transcendence basis the following
constructor can be used.

```@docs
Expand Down
2 changes: 1 addition & 1 deletion src/ideal/ideal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ end
> Returns, by default, an array containing a maximal independet set of
> $lead(I)$. $I$ has to be given by a Gröbner basis.
> If the additional parameter "all" is set to true, an array containing
> all maximal independent sets iof $lead(I)$ is returned.
> all maximal independent sets of $lead(I)$ is returned.
"""
function maximal_independent_set(I::sideal{S}; all::Bool = false) where S <: Union{spoly{T}, spoly{n_unknown{U}}} where {T <: Singular.FieldElem, U <: Nemo.FieldElem}
I.isGB == false && error("I needs to be a Gröbner basis.")
Expand Down
8 changes: 4 additions & 4 deletions src/number/n_transExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ base_ring(a::N_FField) = a.base_ring

@doc Markdown.doc"""
transcendence_degree(F::N_FField)
> Return the trancendence degree of the given function field.
> Return the transcendence degree of the given function field.
"""
transcendence_degree(F::N_FField) = Int(libSingular.rPar(F.ptr))

@doc Markdown.doc"""
basis(F::N_FField)
> Return the trancendence basis of the given function field.
> Return the transcendence basis of the given function field.
"""
function transcendence_basis(F::N_FField)
n = transcendence_degree(F)
Expand Down Expand Up @@ -105,7 +105,7 @@ end
@doc Markdown.doc"""
n_transExt_to_spoly(x::n_transExt; parent::PolyRing)
> Returns the numerator of $x$ as a polynomial in a polynomial
> ring with the same number of variables, as the
> ring with at least as many variables, as the
> transcendence degree of $parent(x)$. If a ring $parent_ring$ is
> given to the function, it will be the parent ring of the output.
"""
Expand All @@ -116,7 +116,7 @@ function n_transExt_to_spoly(x::n_transExt; cached = true,
n = transcendence_degree(R)
S = parent_ring

if B != base_ring(S) || n != nvars(S)
if B != base_ring(S) || n > nvars(S)
error("Base rings do not match.")
end
return S(Singular.libSingular.transExt_to_poly(x.ptr, R.ptr, S.ptr))
Expand Down

0 comments on commit 951f971

Please sign in to comment.