当前位置:网站首页>scipy.sparse.vstack
scipy.sparse.vstack
2022-07-26 02:19:00 【Wanderer001】
Reference resources https://cloud.tencent.com/developer/article/1525041
scipy.sparse.vstack(blocks, format=None, dtype=None)[source]
Stack sparse matrices vertically (row wise)
Parameters
blocks
sequence of sparse matrices with compatible shapes
formatstr, optional
sparse format of the result (e.g. “csr”) by default an appropriate sparse matrix format is returned. This choice is subject to change.
dtypedtype, optional
The data-type of the output matrix. If not given, the dtype is determined from that of blocks.
See also
stack sparse matrices horizontally (column wise)
Examples
>>> from scipy.sparse import coo_matrix, vstack
>>> A = coo_matrix([[1, 2], [3, 4]])
>>> B = coo_matrix([[5, 6]])
>>> vstack([A, B]).toarray()
array([[1, 2],
[3, 4],
[5, 6]])边栏推荐
- Li Kou daily question - day 39 -67. Binary sum
- Sword finger offer 28. symmetric binary tree
- How to choose cloud note tool? What can I do with cloud notes?
- Quick start of adding, deleting, modifying and checking business
- prometheus+process-exporter+grafana 监控进程的资源使用
- 1. Mx6ul core module uses serial can and buzzer test (XI)
- 17_表单数据
- Web3.0 blog DAPP development practice [2022]
- 3. Upload the avatar to qiniu cloud and display it
- (CVPR 2019) GSPN: Generative Shape Proposal Network for 3D Instance Segmentation in Point Cloud
猜你喜欢

力扣148:排序链表

What are the functions of cloud notes, and how do browsers add cloud note plug-ins

CD from grabbing the track to building a streaming media server -- a case study of "moon in the hometown of sleep"

Illustration of the insertion process of b+ tree

I.MX6UL核心模块使用连载-以太网测试 (七)

These practical security browser plug-ins improve your efficiency

I.MX6UL核心模块使用连载-nand flash读写测试 (三)

Error reporting caused by local warehouse

I.MX6UL核心模块使用连载-USB接口测试 (六)

Ti AM335X工控模块矩阵键盘电路的设计与驱动移植
随机推荐
Adruino basic experimental learning (I)
【2021】【论文笔记】红外及THz下的细胞膜生物效应——效应是现象,作用是机理——THz对医学的好处
2022-07-17
i.MX6ULL SNVS电源域GPIO状态保持验证
SQL how to return all data when the input query condition is empty
流形学习、、
[C language brush leetcode] 443. Compressed string (m)
本地仓库导致的报错
The third question of leetcode 302 weekly Games -- query the number with the smallest k after cutting the number
Quick start of adding, deleting, modifying and checking business
租户问题。
[red team] att & CK - using bits services to achieve persistence
项目管理:精益管理法
CD from grabbing the track to building a streaming media server -- a case study of "moon in the hometown of sleep"
TCP three handshakes and four waves
I.MX6UL核心模块使用连载-USB接口测试 (六)
由一个数据增量处理问题看到技术人员的意识差距
1. Mx6ul core module uses serial EMMC read / write test (IV)
[2021] [paper notes] 6G technology vision - otfs modulation technology
18_请求文件