Command for computing matrix elements of the Weil representation

54 views
Skip to first unread message

Brandon Rayhaun

unread,
Oct 6, 2016, 6:50:21 PM10/6/16
to sage-support
Hello all,

I would like to ask Sage to compute matrix elements of the Weil representation, as in the main theorem of this paper:


In the paper, Stromberg mentions that it has already been implemented in Sage. Does anyone know where I can find the documentation on this?

Thanks very much,
Brandon

John Cremona

unread,
Oct 7, 2016, 4:02:25 AM10/7/16
to SAGE support
Try emailing him directly in case he does not read sage-support?
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support...@googlegroups.com.
> To post to this group, send email to sage-s...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.

Fredrik Strömberg

unread,
Oct 7, 2016, 1:13:10 PM10/7/16
to sage-support
Indeed, I do not read it every day but fortunately someome was kind enough to email me.
The code in question (developed by me, Nils Skoruppa and Stephan Ehlen) be found in my psage clone on GitHub: https://github.com/fredstro/psage

Let me know if you have any questions about installing it.

Best,
Fredrik

Brandon Rayhaun

unread,
Jan 4, 2017, 2:33:48 PM1/4/17
to sage-support
Dear Fredrik:

Thanks very much for your reply. I'm trying to install the software now, but am having a bit of trouble. In particular I get a large error message, which I'm copying below. Any advice would be appreciated. This is after I run 

sage setup.py develop

Best,
Brandon

[ 8/52] Cythonizing psage/function_fields/function_field_element.pyx

Error compiling Cython file:
------------------------------------------------------------
...
        cdef FunctionFieldElement left = <FunctionFieldElement>self
        cdef FunctionFieldElement right = <FunctionFieldElement>other
        c = cmp(left._parent, right._parent)
        return c or cmp(left._x, right._x)

    cpdef ModuleElement _add_(self, ModuleElement right):
         ^
------------------------------------------------------------

psage/function_fields/function_field_element.pyx:300:10: Signature not compatible with previous declaration

Error compiling Cython file:
------------------------------------------------------------
...
    cdef getattr_from_category(self, name)

    cpdef _act_on_(self, x, bint self_on_left)
    cpdef _acted_upon_(self, x, bint self_on_left)

    cdef _add_(self, other)
              ^
------------------------------------------------------------


Error compiling Cython file:
------------------------------------------------------------
...
        """
        cdef FunctionFieldElement res = self._new_c()
        res._x = self._x + (<FunctionFieldElement>right)._x
        return res

    cpdef ModuleElement _sub_(self, ModuleElement right):
         ^
------------------------------------------------------------

psage/function_fields/function_field_element.pyx:312:10: Signature not compatible with previous declaration

Error compiling Cython file:
------------------------------------------------------------
...
cdef class ModuleElement(Element)       # forward declaration

cdef class RingElement(ModuleElement)   # forward declaration

cdef class ModuleElement(Element):
    cpdef _sub_(self, right)
               ^
------------------------------------------------------------


Error compiling Cython file:
------------------------------------------------------------
...
        """
        cdef FunctionFieldElement res = self._new_c()
        res._x = self._x - (<FunctionFieldElement>right)._x
        return res

    cpdef RingElement _mul_(self, RingElement right):
         ^
------------------------------------------------------------

psage/function_fields/function_field_element.pyx:324:10: Signature not compatible with previous declaration

Error compiling Cython file:
------------------------------------------------------------
...
    cdef _add_(self, other)
    cdef _sub_(self, other)
    cdef _neg_(self)
    cdef _add_long(self, long n)

    cdef _mul_(self, other)
              ^
------------------------------------------------------------


Error compiling Cython file:
------------------------------------------------------------
...
        """
        cdef FunctionFieldElement res = self._new_c()
        res._x = (self._x * (<FunctionFieldElement>right)._x) % self._parent.polynomial()
        return res

    cpdef RingElement _div_(self, RingElement right):
         ^
------------------------------------------------------------

psage/function_fields/function_field_element.pyx:336:10: Signature not compatible with previous declaration

Error compiling Cython file:
------------------------------------------------------------
...

cdef class AdditiveGroupElement(ModuleElement):
    pass

cdef class RingElement(ModuleElement):
    cpdef _div_(self, right)
               ^
------------------------------------------------------------


Error compiling Cython file:
------------------------------------------------------------
...
        cdef FunctionFieldElement left = <FunctionFieldElement>self
        cdef FunctionFieldElement right = <FunctionFieldElement>other
        c = cmp(left._parent, right._parent)
        return c or cmp(left._x, right._x)

    cpdef ModuleElement _add_(self, ModuleElement right):
         ^
------------------------------------------------------------

psage/function_fields/function_field_element.pyx:458:10: Signature not compatible with previous declaration

Error compiling Cython file:
------------------------------------------------------------
...
    cdef getattr_from_category(self, name)

    cpdef _act_on_(self, x, bint self_on_left)
    cpdef _acted_upon_(self, x, bint self_on_left)

    cdef _add_(self, other)
              ^
------------------------------------------------------------


Error compiling Cython file:
------------------------------------------------------------
...
        """
        cdef FunctionFieldElement res = self._new_c()
        res._x = self._x + (<FunctionFieldElement>right)._x
        return res

    cpdef ModuleElement _sub_(self, ModuleElement right):
         ^
------------------------------------------------------------

psage/function_fields/function_field_element.pyx:470:10: Signature not compatible with previous declaration

Error compiling Cython file:
------------------------------------------------------------
...
cdef class ModuleElement(Element)       # forward declaration

cdef class RingElement(ModuleElement)   # forward declaration

cdef class ModuleElement(Element):
    cpdef _sub_(self, right)
               ^
------------------------------------------------------------


Error compiling Cython file:
------------------------------------------------------------
...
        """
        cdef FunctionFieldElement res = self._new_c()
        res._x = self._x - (<FunctionFieldElement>right)._x
        return res

    cpdef RingElement _mul_(self, RingElement right):
         ^
------------------------------------------------------------

psage/function_fields/function_field_element.pyx:483:10: Signature not compatible with previous declaration

Error compiling Cython file:
------------------------------------------------------------
...
    cdef _add_(self, other)
    cdef _sub_(self, other)
    cdef _neg_(self)
    cdef _add_long(self, long n)

    cdef _mul_(self, other)
              ^
------------------------------------------------------------


Error compiling Cython file:
------------------------------------------------------------
...
        """
        cdef FunctionFieldElement res = self._new_c()
        res._x = self._x * (<FunctionFieldElement>right)._x
        return res

    cpdef RingElement _div_(self, RingElement right):
         ^
------------------------------------------------------------

psage/function_fields/function_field_element.pyx:495:10: Signature not compatible with previous declaration

Error compiling Cython file:
------------------------------------------------------------
...

cdef class AdditiveGroupElement(ModuleElement):
    pass

cdef class RingElement(ModuleElement):
    cpdef _div_(self, right)
               ^
------------------------------------------------------------

Traceback (most recent call last):
    return cythonize_one(*m)
    raise CompileError(None, pyx_file)
CompileError: psage/function_fields/function_field_element.pyx
[ 9/52] Cythonizing psage/functions/inc_gamma.pyx
Traceback (most recent call last):
  File "setup.py", line 126, in <module>
    run_cythonize()
  File "setup.py", line 121, in run_cythonize
    'profile': profile,
    result.get(99999)  # seconds
    raise self._value
Cython.Compiler.Errors.CompileError: psage/function_fields/function_field_element.pyx
Reply all
Reply to author
Forward
0 new messages