当前位置:网站首页>Numpy----np. Tile() function parsing
Numpy----np. Tile() function parsing
2022-06-28 02:06:00 【Rookies should love learning】
Numpy:np.tile() Function analysis
master np.tile() The syntax of the function
This function treats the input as a whole , Make a copy
1. One dimensional copy of the array
print("***********************")
import numpy as np
a = [2,4,6]
b = np.tile(a,3)
print(b)
print("***********************")
Will array a Look as a whole , Copy 3 Input after times 
2. Perform two-dimensional operations on the array
print("***********************")
import numpy as np
a = [2,4,6]
b = np.tile(a,(2,2))
print(b)
print("***********************")
take a As a whole , become 2 That's ok 2 Array of columns copied to b, Printout obtained 
3. Transpose the array
print("***********************")
import numpy as np
a = [2,4,6]
b = np.tile(a,(2,2)).T
print(b)
print("***********************")

4. Comprehensive application
print("***********************")
import numpy as np
a = [2,4,6]
b = np.tile(a,(2,2)).T + np.tile((5,10),(6,1))
print(b)
print("***********************")

边栏推荐
- Evaluation - grey correlation analysis
- Numpy----np.reshape()
- Solve storage problems? WMS warehouse management system solution
- [description] solution to JMeter garbled code
- 零基礎多圖詳解圖神經網絡
- Interface component telerik UI for WPF Getting Started Guide - how to switch custom styles using themes
- [Yocto RM]3 - Yocto Project Releases and the Stable Release Process
- [Niuke discussion area] Chapter 4: redis
- Capacitor
- Implementation of timed tasks in laravel framework
猜你喜欢

Voice network VQA: make the user's subjective experience of unknown video quality in real-time interaction known

Solon 1.8.3 release, cloud native microservice development framework

自监督学习与药物发现

frp实现内网穿透

机器学习笔记 - 时间序列作为特征

Database query optimization: master-slave read-write separation and common problems

MySQL - function

Adobe Premiere Basics - common video effects (cropping, black and white, clip speed, mirroring, lens halo) (XV)

【牛客讨论区】第四章:Redis

TIA botu_ Concrete method of making analog input and output Global Library Based on SCL language
随机推荐
The practice of dual process guard and keeping alive in IM instant messaging development
要搞清楚什么是同步,异步,串行,并行,并发,进程,线程,协程
How to understand query, key and value in transformer
Adobe Premiere基础-常用的视频特效(边角定位,马赛克,模糊,锐化,手写工具,效果控件层级顺序)(十六)
OS模块与OS.path 模块的学习
TD Hero 线上发布会|7月2日邀你来
外盘期货哪里可以开户?哪个平台出入金比较安全?
Adobe Premiere基础-声音调整(音量矫正,降噪,电话音,音高换挡器,参数均衡器)(十八)
Adobe Premiere Basics - common video effects (cropping, black and white, clip speed, mirroring, lens halo) (XV)
How to optimize the "message" list of IM
[Yocto RM]1 - System Requirements
[Yocto RM]1 - System Requirements
Is there any risk in opening an account for flush stock? Is it safe for flush to open an account
Deep parsing of kubernetes controller runtime
Solon 1.8.3 release, cloud native microservice development framework
评价——灰色关联分析
Overview of drug discovery-01 overview of drug discovery
面试官问:能否模拟实现JS的new操作符
ShardingSphere-proxy-5.0.0建立mysql读写分离的连接(六)
如何阅读一篇论文