当前位置:网站首页>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("***********************")

边栏推荐
- centos8-操作记录-命令版-yum-redis-mysql-nacos-jdk
- 【ELT.ZIP】OpenHarmony啃论文俱乐部—数据密集型应用内存压缩
- 外盘期货哪里可以开户?哪个平台出入金比较安全?
- 【sylixos】NEW_1 型字符驱动示例
- Web3 technology initial experience and related learning materials
- 9. Openfeign service interface call
- Qu'est - ce que la numérisation? Qu'est - ce que la transformation numérique? Pourquoi les entreprises choisissent - elles la transformation numérique?
- 766. toplitz matrix
- I/O限制进程与CPU限制进程
- [Yocto RM] 2 - Yocto Project Terms
猜你喜欢

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

Lmsoc: a socially sensitive pre training method

【嵌入式基础】内存(Cache,RAM,ROM,Flash)

Adobe Premiere Basics - common video effects (corner positioning, mosaic, blur, sharpen, handwriting tools, effect control hierarchy) (16)

Appium自动化测试基础— 补充:App的包名(appPackage)和启动名(appActivity)

TIA botu_ Concrete method of making analog input and output Global Library Based on SCL language

Shardingsphere-proxy-5.0.0 establish MySQL read / write separation connection (6)

Solon 1.8.3 发布,云原生微服务开发框架

Adobe Premiere基础-常用的视频特效(裁剪,黑白,剪辑速度,镜像,镜头光晕)(十五)

What problems should be evaluated before implementing MES management system
随机推荐
How to read a paper
Voice network VQA: make the user's subjective experience of unknown video quality in real-time interaction known
Using redis bitmap to realize personnel online monitoring
基于AM335X开发板 ARM Cortex-A8——Acontis EtherCAT主站开发案例
Réseau neuronal pour la solution détaillée Multi - diagrammes de fondation zéro
Maimai hot post: Why are big factories keen on making wheels?
Original | 2025 to achieve the "five ones" goal! The four products of Jiefang power are officially released
How to study efficiently
Deep parsing of kubernetes controller runtime
Interface component telerik UI for WPF Getting Started Guide - how to switch custom styles using themes
【sylixos】NEW_ Example of type 1 character drive
Li Kou today's question -522 Longest special sequence
如何阅读一篇论文
Review of drug discovery-02-prediction of molecular properties
Capacitor
Scala 基础 (三):运算符和流程控制
Four classic training modes in comparative learning
How fiddle uses agents
TD Hero 线上发布会|7月2日邀你来
机器学习笔记 - 时间序列作为特征