当前位置:网站首页>One dimensional vector transpose point multiplication np dot
One dimensional vector transpose point multiplication np dot
2022-07-05 08:39:00 【Aii parson】
import numpy as np
a = np.array([1, 2])
a.shape = (1,2)# The second latitude 1 It's empty. , Only when it is specified can the row vector be converted into column vector smoothly
print(a)
print(a.transpose())
print(np.dot(a,a.transpose()))
print("**************************")
c = np.array([1, 2])
b = c.reshape(len(c),1)# Put the vector reshape once , In this way, the purpose of one-dimensional vector and one-dimensional vector transpose and multiply as a matrix
print(b.shape)
print(b)
边栏推荐
- Classification of plastic surgery: short in long long long
- Example 007: copy data from one list to another list.
- 【三层架构】
- 696. 计数二进制子串
- An enterprise information integration system
- EA introduction notes
- Run menu analysis
- Digital analog 2: integer programming
- 实例004:这天第几天 输入某年某月某日,判断这一天是这一年的第几天?
- Guess riddles (7)
猜你喜欢
随机推荐
Example 003: a complete square is an integer. It is a complete square after adding 100, and it is a complete square after adding 168. What is the number?
Guess riddles (10)
STM32 --- configuration of external interrupt
STM32 single chip microcomputer - bit band operation
[matlab] matlab reads and writes Excel
Example 008: 99 multiplication table
MATLAB小技巧(28)模糊綜合評價
剑指 Offer 06. 从尾到头打印链表
Example 006: Fibonacci series
STM32 single chip microcomputer -- volatile keyword
实例005:三数排序 输入三个整数x,y,z,请把这三个数由小到大输出。
Typescript hands-on tutorial, easy to understand
[three tier architecture and JDBC summary]
Infix expression evaluation
Yolov4 target detection backbone
图解八道经典指针笔试题
如何写Cover Letter?
Example 002: the bonus paid by the "individual income tax calculation" enterprise is based on the profit commission. When the profit (I) is less than or equal to 100000 yuan, the bonus can be increase
關於線性穩壓器的五個設計細節
Meizu Bluetooth remote control temperature and humidity access homeassistant