source: doc/py_datatypes.rst @ 05774ba3

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/timestretchfix/ffmpeg5
Last change on this file since 05774ba3 was 6d4802f, checked in by Paul Brossier <piem@piem.org>, 6 years ago

[doc] add a note about building the module in double precision

  • Property mode set to 100644
File size: 1001 bytes

Data-types

?
.. default-domain:: py
?
.. currentmodule:: aubio

This section contains the documentation for :data:`float_type`, :class:`fvec`, and :class:`cvec`.

??? ?
.. data:: float_type
    A string constant describing the floating-point representation used in
    :class:`fvec`, :class:`cvec`, and elsewhere in this module.
    Defaults to `"float32"`.
    If `aubio` was built specifically with the option `--enable-double`, this
    string will be defined to `"float64"`. See :ref:`py-doubleprecision` in
    :ref:`python-install` for more details on building aubio in double
    precision mode.
    .. rubric:: Examples
    >>> aubio.float_type
    'float32'
    >>> numpy.zeros(10).dtype
    'float64'
    >>> aubio.fvec(10).dtype
    'float32'
    >>> np.arange(10, dtype=aubio.float_type).dtype
    'float32'
?
.. autoclass:: fvec
  :members:
?
.. autoclass:: cvec
  :members:
Note: See TracBrowser for help on using the repository browser.