当前位置:网站首页>numpy. tile()
numpy. tile()
2022-06-26 05:56:00 【Wanderer001】
Reference resources numpy.tile() - cloud + Community - Tencent cloud
Copy the array in all directions , such as a = np.array([0,1,2]), np.tile(a,(2,1)) Is to put a First along x Axis ( Let's call it that way ) Copy 1 times , That is, there is no copy , Still [0,1,2]. Then put the result along y Direction copy 2 times , That is, finally get
array([[0,1,2],
[0,1,2]])
Empathy :
>>> b = np.array([[1, 2], [3, 4]])
>>> np.tile(b, 2) # Along the X Axis copy 2 times
array([[1, 2, 1, 2],
[3, 4, 3, 4]])
>>> np.tile(b, (2, 1))# Along the X Axis copy 1 times ( Equivalent to no copy ), Reengaging Y Axis copy 2 times
array([[1, 2],
[3, 4],
[1, 2],
[3, 4]])边栏推荐
- 421-二叉树(226. 翻转二叉树、101. 对称二叉树、104.二叉树的最大深度、222.完全二叉树的节点个数)
- Customize WebService as a proxy to solve the problem of Silverlight calling WebService across domains
- Redis底层数据结构
- Introduction to lcm32f037 series of MCU chip for motor
- The news of thunderbolt
- 类和对象的学习
- 重载和重写
- About XXX management system (version C)
- Pre-Sale Analysis
- RIA ideas
猜你喜欢

Class and object learning

REUSE_ ALV_ GRID_ Display event implementation (data_changed)

Prototype mode, Baa Baa

重载和重写

Pytorch (environment, tensorboard, transforms, torchvision, dataloader)

Household accounting procedures (the second edition includes a cycle)

DOM document

pytorch(环境、tensorboard、transforms、torchvision、dataloader)

String类学习
![Operator priority, associativity, and whether to control the evaluation order [detailed explanation]](/img/c3/a646a7c7cb82e00746923f7b023058.jpg)
Operator priority, associativity, and whether to control the evaluation order [detailed explanation]
随机推荐
家庭记账程序(第二版 加入了循环)
小程序如何关联微信小程序二维码,实现二码聚合
Force buckle 875 Coco, who likes bananas
Combined mode, transparent mode and secure mode
What management systems (Updates) for things like this
Posting - don't get lost in the ocean of Technology
Consul service registration and discovery
MEF framework learning record
BOM文档
怎么把平板作为电脑的第二扩展屏幕
Redis底层数据结构
How Navicat reuses the current connection information to another computer
FindControl的源代码
1212312321
Day2- syntax basis and variables
C generic speed
Project suspension
Ribbon负载均衡服务调用
Household accounting procedures (the second edition includes a cycle)
Adapter mode