scipy 1.8.0 Pypi GitHub Homepage
Other Docs
ParametersReturnsBackRef
toarray(self, order=None, out=None)

Parameters

order : {'C', 'F'}, optional

Whether to store multidimensional data in C (row-major) or Fortran (column-major) order in memory. The default is 'None', which provides no ordering guarantees. Cannot be specified in conjunction with the :None:None:`out` argument.

out : ndarray, 2-D, optional

If specified, uses this array as the output buffer instead of allocating a new array to return. The provided array must have the same shape and dtype as the sparse matrix on which you are calling the method. For most sparse types, :None:None:`out` is required to be memory contiguous (either C or Fortran ordered).

Returns

arr : ndarray, 2-D

An array with the same shape and containing the same data represented by the sparse matrix, with the requested memory order. If :None:None:`out` was passed, the same object is returned after being modified in-place to contain the appropriate values.

Return a dense ndarray representation of this matrix.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy.sparse._construct.diags scipy.sparse._coo.coo_matrix.toarray scipy.sparse.linalg._eigen.lobpcg.lobpcg.lobpcg scipy.spatial._kdtree.KDTree.sparse_distance_matrix scipy.sparse._dia.dia_matrix scipy.sparse._construct.spdiags scipy.sparse._arrays.dia_array

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/sparse/_base.py#938
type: <class 'function'>
Commit: