File: sparse.COO.rst

package info (click to toggle)
python-sparse 0.16.0a9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,948 kB
  • sloc: python: 9,959; makefile: 8; sh: 3
file content (88 lines) | stat: -rw-r--r-- 1,564 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
COO
===

.. currentmodule:: sparse

.. autoclass:: COO

   .. note:: :obj:`COO` objects also support :ref:`operators <operations-operators>`
      and :ref:`indexing <operations-indexing>`

   .. rubric:: Attributes
   .. autosummary::
      :toctree:

      COO.T
      COO.dtype
      COO.nbytes
      COO.ndim
      COO.nnz
      COO.size
      COO.density
      COO.imag
      COO.real

   .. rubric:: :doc:`Constructing COO objects <../construct>`
   .. autosummary::
      :toctree:

      COO.from_iter
      COO.from_numpy
      COO.from_scipy_sparse

   .. rubric:: :ref:`Element-wise operations <operations-elemwise>`
   .. autosummary::
      :toctree:

      COO.astype
      COO.conj
      COO.clip
      COO.round

   .. rubric:: :ref:`Reductions <operations-reductions>`
   .. autosummary::
      :toctree:

      COO.reduce

      COO.sum
      COO.prod
      COO.min
      COO.max
      COO.any
      COO.all
      COO.mean
      COO.std
      COO.var

   .. rubric:: :ref:`Converting to other formats <converting>`
   .. autosummary::
      :toctree:

      COO.asformat
      COO.todense
      COO.maybe_densify
      COO.to_scipy_sparse
      COO.tocsc
      COO.tocsr

   .. rubric:: :ref:`Other operations <operations-other>`
   .. autosummary::
      :toctree:

      COO.copy
      COO.dot
      COO.flatten
      COO.reshape
      COO.resize
      COO.transpose
      COO.swapaxes
      COO.nonzero

   .. rubric:: Utility functions
   .. autosummary::
      :toctree:

      COO.broadcast_to
      COO.enable_caching
      COO.linear_loc