GSL arrays - C/C++ Library Interfaces

Skip to content
Back to top
View this page
Edit this page

# GSL arrays

class sage.libs.gsl.array.GSLDoubleArray

  Bases: `object`

  EXAMPLES:

  Sage

      sage: a = WaveletTransform(128,'daubechies',4)
      sage: for i in range(1, 11):
      ....:     a[i] = 1
      sage: a[:6:2]
      [0.0, 1.0, 1.0]

  Python

      >>> from sage.all import *
      >>> a = WaveletTransform(Integer(128),'daubechies',Integer(4))
      >>> for i in range(Integer(1), Integer(11)):
      ...     a[i] = Integer(1)
      >>> a[:Integer(6):Integer(2)]
      [0.0, 1.0, 1.0]