You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
798 B
30 lines
798 B
5 years ago
|
:mod:`uarray` -- arrays of numeric data
|
||
|
=======================================
|
||
8 years ago
|
|
||
5 years ago
|
.. module:: uarray
|
||
8 years ago
|
:synopsis: efficient arrays of numeric data
|
||
|
|
||
7 years ago
|
|see_cpython_module| :mod:`python:array`.
|
||
8 years ago
|
|
||
|
Supported format codes: ``b``, ``B``, ``h``, ``H``, ``i``, ``I``, ``l``,
|
||
|
``L``, ``q``, ``Q``, ``f``, ``d`` (the latter 2 depending on the
|
||
|
floating-point support).
|
||
|
|
||
|
Classes
|
||
|
-------
|
||
|
|
||
5 years ago
|
.. class:: array(typecode, [iterable])
|
||
8 years ago
|
|
||
|
Create array with elements of given type. Initial contents of the
|
||
7 years ago
|
array are given by *iterable*. If it is not provided, an empty
|
||
8 years ago
|
array is created.
|
||
|
|
||
|
.. method:: append(val)
|
||
|
|
||
7 years ago
|
Append new element *val* to the end of array, growing it.
|
||
8 years ago
|
|
||
|
.. method:: extend(iterable)
|
||
|
|
||
7 years ago
|
Append new elements as contained in *iterable* to the end of
|
||
8 years ago
|
array, growing it.
|