当前位置:网站首页>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]])边栏推荐
- Ti AM335X工控模块使用beaglebone(bbb)的Debian系统
- Sqlyog data import and export graphic tutorial
- prometheus+process-exporter+grafana 监控进程的资源使用
- 数仓:银行业数仓的分层架构实践
- A pluggable am335x industrial control module onboard WiFi module
- I.MX6UL核心模块使用连载-以太网测试 (七)
- These practical security browser plug-ins improve your efficiency
- 1. Mx6ul core module uses serial EMMC read / write test (IV)
- Data warehouse: Practice of hierarchical structure of data warehouse in banking industry
- 19_ Request forms and documents
猜你喜欢
![[cloud native] 4.1 Devops foundation and Practice](/img/09/5423540d0a4a11bc7162c5ab343a4d.png)
[cloud native] 4.1 Devops foundation and Practice

【2020】【论文笔记】磁控溅射法生长Bi2Te3/CoFeB双层异质结——

Kaggle registration method to solve the problem of man-machine verification

Business Intelligence BI full analysis, explore the essence and development trend of Bi

租户问题。

Quick start of adding, deleting, modifying and checking business

Error reporting caused by local warehouse

Adruino basic experimental learning (I)

Niuke net question brushing training (I)

Postman reported JSON serialization error
随机推荐
LeetCode_ Dynamic programming_ Medium_ 264. Ugly number II
【2021】【论文笔记】6G技术愿景——OTFS调制技术
2022.7.25-----leetcode.919
还在用==0 null equal 判断空值吗,对isEmpty 和 isBlank有多少了解呢
Implementation of Ti am335x industrial control module network and file system nfs
Primary key b+ tree, secondary index b+ tree and corresponding query process analysis
These practical security browser plug-ins improve your efficiency
微信小程序解密并拆包获取源码教程
Are you still using ==0 null equal to judge null values? How much do you know about isempty and isblank
力扣148:排序链表
Master-slave replication in MySQL
SQL how to return all data when the input query condition is empty
1. Mx6ul core module uses serial EMMC read / write test (IV)
Sword finger offer 28. symmetric binary tree
租户问题。
记录之目标检测NMS(非极大值抑制)
I.MX6UL核心模块使用连载-Iot-6ULX核心模块简要介绍 (一)
由一个数据增量处理问题看到技术人员的意识差距
IDEA运行web项目出现乱码问题有效解决(附详细步骤)
Error reporting caused by local warehouse