vector - vector product

the inner product

Givens two vectors \(x,y\in \mathbb{R}^n\), the quantity \(x^\top y\), sometimes called the inner product or dot product of the vectors, is a real number given by:
\[x^\top y=\begin{bmatrix}x_1 , x_2 ,\cdots ,x_n \end{bmatrix}\begin{bmatrix}y_1 \\ y_2 \\ \vdots \\ y_n\end{bmatrix}=\sum_{i=1}^n x_iy_i\]
the inner products are reaully just special case of matrix multiplication.

the outer product

Given vectors \(x\in\mathbb{R}^m,y\in \mathbb{R}^n\)(not necessarily of the same size), \(xy^\top\in\mathbb{R}^{m\times n}\) is called the outer product of the vectors, It is a matrix whose entries are given by \((xy^\top)_{ij}=x_i y_i\) ,i.e.,
\[x y^\top=\begin{bmatrix}x_1 \\ x_2 \\\vdots \\x_m \end{bmatrix}\begin{bmatrix}y_1, y_2, \cdots, y_n\end{bmatrix}=\begin{bmatrix}x_1 y_1, x_1 y_2,\cdots x_1 y_n\\ x_2 y_1, x_2 y_2, \cdots, x_2 y_n\\ \cdots, \cdots, \cdots ,\cdots\\ x_m y_1,x_m y_2, \cdots, x_m y_n\end{bmatrix}\]

转载于:https://www.cnblogs.com/ZJUT-jiangnan/p/5927290.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值