id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
scipy_io/844_124_0.txt
You don't have to explain this to me, btw. I have been in the software development world and open source world for quite awhile (just not that active on github). No worries. I just figured you could generate the sparse matrix instead of me writing that code in Python for you since you were working on the R side, next t...
scipy_io/7510_183_0.txt
None yet
scipy_io/844_73_0.txt
This may be related to the following: [ #727 ](https://github.com/rstudio/reticulate/issues/727)
scipy_io/scipy_io_7_1.txt
s : **mat_dict** dict dictionary with variable names as keys, and loaded matrices as values. Notes v4 (Level 1.0), v6 and v7 to 7.2 matfiles are supported. You will need an HDF5 Python library to read MATLAB 7.3 format mat files. Because SciPy does not supply one, we do not implement the HDF5 / 7.3 in...
scipy_io/844_21_0.txt
* [ Pricing ](https://github.com/pricing)
scipy_io/844_126_0.txt
All reactions
scipy_io/sparsesavenpzhtml_16_0.txt
>>> import os >>> import sparse >>> import numpy as np >>> dense_mat = np.array([[[0.0, 0.0], [0.0, 0.70677779]], [[0.0, 0.0], [0.0, 0.86522495]]]) >>> mat = sparse.COO(dense_mat) >>> mat <COO: shape=(2, 2, 2), dtype=float64, nnz=2, fill_value=0.0> >>> sparse.save_npz("mat.npz", mat) >>> loaded_mat = sparse.load_npz("m...
scipy_io/7510_43_0.txt
* [ Code ](/scipy/scipy) * [ Issues 1.5k ](/scipy/scipy/issues) * [ Pull requests 302 ](/scipy/scipy/pulls) * [ Actions ](/scipy/scipy/actions) * [ Projects 0 ](/scipy/scipy/projects) * [ Wiki ](/scipy/scipy/wiki) * [ Security ](/scipy/scipy/security) * [ Insights ](/scipy/scipy/pulse)
scipy_io/sparsesavenpzhtml_3_0.txt
* [ nanmean ](sparse.nanmean.html) * [ nanmin ](sparse.nanmin.html) * [ nanprod ](sparse.nanprod.html) * [ nanreduce ](sparse.nanreduce.html) * [ nansum ](sparse.nansum.html) * [ nonzero ](sparse.nonzero.html) * [ ones ](sparse.ones.html) * [ ones_like ](sparse.ones_like.html) * [ outer ](sparse.outer.html) * [ pad ](s...
scipy_io/7510_14_0.txt
Resources
scipy_io/sparsesavenpzhtml_11_0.txt
* **filename** ( _string_ _or_ _file_ ) – Either the file name (string) or an open file (file-like object) where the data will be saved. If file is a string or a Path, the ` .npz ` extension will be appended to the file name if it is not already there
scipy_io/844_29_0.txt
Include my email address so I can be contacted
scipy_io/844_32_0.txt
## Use saved searches to filter your results more quickly
scipy_io/scipy_io_20_0.txt
[ SciPy v1.12.0 Manual ](../../index.html) * [ Installing ](https://scipy.org/install/) * [ User Guide ](../../tutorial/index.html) * [ API reference ](../index.html) * [ Building from source ](../../building/index.html) * [ Development ](../../dev/index.html) * [ Release notes ](../../release.html) __ _...
scipy_io/7510_182_0.txt
Projects
scipy_io/844_7_0.txt
Explore
scipy_io/scipysparsesavenpzht_21_0.txt
See also
scipy_io/7510_127_0.txt
[ @perimosocordiae ](https://github.com/perimosocordiae) how do you know whether the output should be sparse? For example, why doesn't ` matrix @ sparse ` return sparse?
scipy_io/7510_35_0.txt
To see all available qualifiers, see our [ documentation ](https://docs.github.com/search-github/github-code-search/understanding- github-code-search-syntax) .
scipy_io/844_120_0.txt
Author
scipy_io/844_41_0.txt
[ rstudio ](/rstudio) / **[ reticulate ](/rstudio/reticulate) ** Public
scipy_io/sparsesavenpzhtml_15_0.txt
Store sparse matrix to disk, and load it again:
scipy_io/scipysparsesavenpzht_27_0.txt
Save several arrays into a compressed ` .npz ` archive.
scipy_io/sparsesavenpzhtml_9_0.txt
Save a sparse matrix to disk in numpy’s ` .npz ` format. Note: This is not binary compatible with scipy’s ` save_npz() ` . This binary format is not currently stable. Will save a file that can only be opend with this package’s ` load_npz() ` .
scipy_io/844_132_0.txt
None yet
scipy_io/844_62_0.txt
**[ swzCuroverse ](/swzCuroverse) ** commented Sep 10, 2020 •
scipy_io/844_83_0.txt
Can you please share a standalone reproducible example?
scipy_io/844_17_0.txt
* [ GitHub Sponsors Fund open source developers ](https://github.com/sponsors)
scipy_io/844_113_0.txt
**[ swzCuroverse ](/swzCuroverse) ** commented Sep 10, 2020
scipy_io/7510_161_0.txt
Member
scipy_io/7510_115_0.txt
Copy link
scipy_io/sparsesavenpzhtml_22_0.txt
Built with [ Sphinx ](https://www.sphinx-doc.org/) using a [ theme ](https://github.com/readthedocs/sphinx_rtd_theme) provided by [ Read the Docs ](https://readthedocs.org) .
scipy_io/7510_134_0.txt
Sorry, something went wrong.
scipy_io/7510_28_0.txt
We read every piece of feedback, and take your input very seriously.
scipy_io/844_78_0.txt
Copy link
scipy_io/7510_62_0.txt
## Comments
scipy_io/7510_105_0.txt
Following this rule:
scipy_io/scipysparsesavenpzht_41_0.txt
__ ](scipy.sparse.load_npz.html "next page")
scipy_io/844_14_0.txt
Resources
scipy_io/844_6_0.txt
* [ Actions Automate any workflow ](https://github.com/features/actions) * [ Packages Host and manage packages ](https://github.com/features/packages) * [ Security Find and fix vulnerabilities ](https://github.com/features/security) * [ Codespaces Instant dev environments ](https://github.com/features/codespace...
scipy_io/844_13_0.txt
* [ CI/CD & Automation ](https://github.com/solutions/ci-cd) * [ DevOps ](https://github.com/solutions/devops) * [ DevSecOps ](https://resources.github.com/devops/fundamentals/devsecops)
scipy_io/844_19_0.txt
Repositories
scipy_io/scipysparsesavenpzht_22_0.txt
[ ` scipy.sparse.load_npz ` ](scipy.sparse.load_npz.html#scipy.sparse.load_npz "scipy.sparse.load_npz")
scipy_io/7510_190_0.txt
## Footer
scipy_io/7510_86_0.txt
###
scipy_io/7510_152_0.txt
###
scipy_io/7510_113_0.txt
[ ![@perimosocordiae](https://avatars.githubusercontent.com/u/82855?s=40&v=4) ](/perimosocordiae) [ perimosocordiae ](/perimosocordiae) added this to the 1.0 milestone Jun 21, 2017
scipy_io/844_101_0.txt
Copy link
scipy_io/844_33_0.txt
Name
scipy_io/scipysparsesavenpzht_46_0.txt
Built with the [ PyData Sphinx Theme ](https://pydata-sphinx- theme.readthedocs.io/en/stable/index.html) 0.15.2.
scipy_io/844_105_0.txt
Thank you. My point is that, in order for me to be able to fix the issue, I need to be able to reproduce it -- and so your providing a reproducible example makes it far easier for me.
scipy_io/7510_185_0.txt
[ **1.0.0** ](/scipy/scipy/milestone/32 "1.0.0")
scipy_io/7510_101_0.txt
Member
scipy_io/844_74_0.txt
---
scipy_io/7510_117_0.txt
**[ dhimmel ](/dhimmel) ** commented Jun 21, 2017 •
scipy_io/7510_172_0.txt
**[ evfro ](/evfro) ** commented Apr 18, 2020
scipy_io/7510_46_0.txt
New issue
scipy_io/scipy_io_18_0.txt
[ SciPy v1.12.0 Manual ](../../index.html) * [ Installing ](https://scipy.org/install/) * [ User Guide ](../../tutorial/index.html) * [ API reference ](../index.html) * [ Building from source ](../../building/index.html) * [ Development ](../../dev/index.html) * [ Release notes ](../../release.html) __ _...
scipy_io/7510_181_0.txt
[ defect ](/scipy/scipy/labels/defect) A clear bug or issue that prevents SciPy from being installed or used as expected [ scipy.sparse ](/scipy/scipy/labels/scipy.sparse)
scipy_io/7510_44_0.txt
Additional navigation options
scipy_io/7510_22_0.txt
Search or jump to...
scipy_io/7510_8_0.txt
* [ All features ](https://github.com/features) * [ Documentation ](https://docs.github.com) * [ GitHub Skills ](https://skills.github.com) * [ Blog ](https://github.blog)
scipy_io/7510_58_0.txt
Labels
scipy_io/scipysparsesavenpzht_4_0.txt
* [ Installing ](https://scipy.org/install/) * [ User Guide ](../../tutorial/index.html) * [ API reference ](../index.html) * [ Building from source ](../../building/index.html) * [ Development ](../../dev/index.html) * [ Release notes ](../../release.html)
scipy_io/7510_60_0.txt
Milestone
scipy_io/7510_133_0.txt
All reactions
scipy_io/844_123_0.txt
edited
scipy_io/844_61_0.txt
###
scipy_io/scipysparsesavenpzht_25_0.txt
Save several arrays into a ` .npz ` archive.
scipy_io/844_25_0.txt
Clear
scipy_io/844_85_0.txt
All reactions
scipy_io/844_48_0.txt
[ Sign up for GitHub ](/signup?return_to=%2Frstudio%2Freticulate%2Fissues%2Fnew%2Fchoose)
scipy_io/scipy_io_3_1.txt
e(*,*) b(i,:) end do Methods [ ` close ` ](scipy.io.FortranFile.close.html#scipy.io.FortranFile.close "scipy.io.FortranFile.close") () | Closes the file. ---|--- [ ` read_ints ` ](scipy.io.FortranFile.read_ints.html#scipy.io.FortranFile.read_ints "scipy.io.FortranFile.read_ints") ([dtype]) | Reads...
scipy_io/7510_76_0.txt
mat + sp_mat >>> matrix([[2, 2], [2, 0]], dtype=int64)
scipy_io/7510_159_0.txt
[ ![@perimosocordiae](https://avatars.githubusercontent.com/u/82855?s=80&v=4) ](/perimosocordiae)
scipy_io/7510_29_0.txt
Include my email address so I can be contacted
scipy_io/844_10_0.txt
For
scipy_io/scipy_io_1_0.txt
[ SciPy v1.12.0 Manual ](../../index.html) * [ Installing ](https://scipy.org/install/) * [ User Guide ](../../tutorial/index.html) * [ API reference ](../index.html) * [ Building from source ](../../building/index.html) * [ Development ](../../dev/index.html) * [ Release notes ](../../release.html) __ _...
scipy_io/844_34_0.txt
Query
scipy_io/7510_59_0.txt
[ defect ](/scipy/scipy/labels/defect) A clear bug or issue that prevents SciPy from being installed or used as expected [ scipy.sparse ](/scipy/scipy/labels/scipy.sparse)
scipy_io/7510_87_0.txt
**[ dhimmel ](/dhimmel) ** commented Jun 20, 2017 •
scipy_io/7510_77_0.txt
sp_mat * mat >>> array([[2, 1], [1, 1]], dtype=int64)
scipy_io/7510_26_0.txt
[ Search syntax tips ](https://docs.github.com/search-github/github-code- search/understanding-github-code-search-syntax)
scipy_io/844_110_0.txt
Copy link
scipy_io/sparsesavenpzhtml_24_0.txt
Versions
scipy_io/844_104_0.txt
**[ kevinushey ](/kevinushey) ** commented Sep 10, 2020
scipy_io/844_75_0.txt
The text was updated successfully, but these errors were encountered:
scipy_io/7510_111_0.txt
Sorry, something went wrong.
scipy_io/844_36_0.txt
Cancel Create saved search
scipy_io/7510_167_0.txt
All reactions
scipy_io/sparsesavenpzhtml_25_0.txt
[ latest ](/en/latest/) [ stable ](/en/stable/) [ 0.15.1 ](/en/0.15.1/) [ 0.14.0 ](/en/0.14.0/) [ 0.13.0 ](/en/0.13.0/) [ 0.12.0 ](/en/0.12.0/) [ 0.11.2 ](/en/0.11.2/) [ 0.11.1 ](/en/0.11.1/) [ 0.11.0 ](/en/0.11.0/) [ 0.10.0 ](/en/0.10.0/) [ 0.9.1 ](/en/0.9.1/) [ 0.8.0 ](/en/0.8.0/) [ 0.7.0 ](/en/0.7.0/) [ 0.6.0 ](/en/...
scipy_io/scipysparsesavenpzht_20_0.txt
Allow compressing the file. Default: True
scipy_io/7510_61_0.txt
[ 1.0.0 ](/scipy/scipy/milestone/32 "1.0.0")
scipy_io/7510_30_0.txt
Cancel Submit feedback
scipy_io/844_2_0.txt
Toggle navigation
scipy_io/7510_52_0.txt
# Operations between numpy.array and scipy.sparse matrix return inconsistent array type #7510
scipy_io/7510_128_0.txt
From the [ scipy.linalg docs ](https://docs.scipy.org/doc/scipy/reference/tutorial/linalg.html) :
scipy_io/844_121_0.txt
###
scipy_io/844_130_0.txt
No one assigned
scipy_io/scipy_io_17_0.txt
[ SciPy v1.12.0 Manual ](../../index.html) * [ Installing ](https://scipy.org/install/) * [ User Guide ](../../tutorial/index.html) * [ API reference ](../index.html) * [ Building from source ](../../building/index.html) * [ Development ](../../dev/index.html) * [ Release notes ](../../release.html) __ _...