diff --git a/pkg/JuliaExperimental/gap/zmodnz.g b/pkg/JuliaExperimental/gap/zmodnz.g index 8ee17111..3720bc4f 100644 --- a/pkg/JuliaExperimental/gap/zmodnz.g +++ b/pkg/JuliaExperimental/gap/zmodnz.g @@ -28,7 +28,7 @@ InstallMethod( ContextGAPNemo, fi; # Create the Nemo ring. - juliaRing:= Julia.Nemo.residue_ring( Julia.Nemo.ZZ, GAPToJulia( m ) ); + juliaRing:= Julia.Nemo.residue_ring( Julia.Nemo.ZZ, GAPToJulia( m ) )[1]; # Create the GAP wrapper. # Note that elements from different Nemo residue rings cannot be compared, diff --git a/pkg/JuliaExperimental/julia/realcyc.jl b/pkg/JuliaExperimental/julia/realcyc.jl index 3adcabe8..012c4037 100644 --- a/pkg/JuliaExperimental/julia/realcyc.jl +++ b/pkg/JuliaExperimental/julia/realcyc.jl @@ -40,7 +40,7 @@ function isPositiveRealPartCyc( coeffs::Vector ) while true R::Nemo.ArbField = Nemo.ArbField( prec ) x::Nemo.arb = arbCyc( coeffs, R ) - if Nemo.ispositive( x ) + if Nemo.is_positive( x ) return ( true, prec ) elseif Nemo.is_negative( x ) return ( false, prec ) diff --git a/pkg/JuliaExperimental/tst/context.tst b/pkg/JuliaExperimental/tst/context.tst index c375da8b..2154d145 100644 --- a/pkg/JuliaExperimental/tst/context.tst +++ b/pkg/JuliaExperimental/tst/context.tst @@ -140,13 +140,13 @@ gap> c:= ContextGAPNemo( f ); gap> gap_elm:= One( f );; gap> elm:= GAPToNemo( c, gap_elm );; gap> JuliaTypeInfo( JuliaPointer( elm ) ); -"Nemo.nf_elem" +"Nemo.AbsSimpleNumFieldElem" gap> NemoToGAP( c, elm ) = gap_elm; true gap> a:= RootOfDefiningPolynomial( f );; gap> elm:= GAPToNemo( c, a );; gap> JuliaTypeInfo( JuliaPointer( elm ) ); -"Nemo.nf_elem" +"Nemo.AbsSimpleNumFieldElem" gap> NemoToGAP( c, elm ) = a; true gap> gap_vec:= [ a+1, a-1 ];; diff --git a/pkg/JuliaExperimental/tst/numfield.tst b/pkg/JuliaExperimental/tst/numfield.tst index fcf5aac2..661f23f9 100644 --- a/pkg/JuliaExperimental/tst/numfield.tst +++ b/pkg/JuliaExperimental/tst/numfield.tst @@ -68,11 +68,11 @@ gap> Characteristic( nmat ); gap> tr:= TraceMat( nmat ); <> gap> JuliaTypeInfo( JuliaPointer( tr ) ); -"Nemo.nf_elem" +"Nemo.AbsSimpleNumFieldElem" gap> det:= DeterminantMat( nmat ); <> gap> JuliaTypeInfo( JuliaPointer( det ) ); -"Nemo.nf_elem" +"Nemo.AbsSimpleNumFieldElem" gap> NemoToGAP( c, nmat ); [ [ !1, 1/2*a ], [ !0, !1 ] ] gap> no:= GAPToNemo( c, One( f ) ); diff --git a/pkg/JuliaInterface/tst/wrapper.tst b/pkg/JuliaInterface/tst/wrapper.tst index fd47913a..a0bf5a2c 100644 --- a/pkg/JuliaInterface/tst/wrapper.tst +++ b/pkg/JuliaInterface/tst/wrapper.tst @@ -12,8 +12,6 @@ gap> N := Objectify(type, rec());; gap> SetJuliaPointer(N, n); gap> Julia.Base.typeof(N); -gap> N(1); -Error, MethodError: objects of type BigInt are not callable ## wrap a Julia function gap> f := Objectify(type, rec());;