Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" Cython Functions for Timing Clone Protocol """ #***************************************************************************** # Copyright (C) 2009-2010 Florent Hivert <Florent.Hivert@univ-rouen.fr> # # Distributed under the terms of the GNU General Public License (GPL) # http://www.gnu.org/licenses/ #***************************************************************************** from __future__ import absolute_import
from sage.structure.list_clone cimport ClonableArray
##################################################################### ###### Timings functions ###### ##################################################################### cpdef ClonableArray cy_add1_internal(ClonableArray bla): """ TESTS::
sage: from sage.structure.list_clone_timings import * sage: cy_add1_internal(IncreasingArrays()([1,4,5])) [2, 5, 6] """ cdef int i cdef list lst cdef ClonableArray blo
cpdef ClonableArray cy_add1_immutable(ClonableArray bla): """ TESTS::
sage: from sage.structure.list_clone_timings import * sage: cy_add1_immutable(IncreasingArrays()([1,4,5])) [2, 5, 6] """ cdef int i cdef list lbla
cpdef ClonableArray cy_add1_mutable(ClonableArray bla): """ TESTS::
sage: from sage.structure.list_clone_timings import * sage: cy_add1_mutable(IncreasingArrays()([1,4,5])) [2, 5, 6] """ cdef int i cdef ClonableArray blo
cpdef ClonableArray cy_add1_with(ClonableArray bla): """ TESTS::
sage: from sage.structure.list_clone_timings import * sage: cy_add1_with(IncreasingArrays()([1,4,5])) [2, 5, 6] """ cdef int i cdef ClonableArray blo |