知识卡片
矩阵乘法须匹配内维
A为p×q、B为q×r时,AB才可定义,结果为p×r,元素cᵢⱼ=Σₖaᵢₖbₖⱼ。
朴素实现用Θ(pqr)时间;只看结果维度不能忽略内维匹配。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 附录D 矩阵 · 查看原书依据
We define matrix multiplication as follows. Start with two matrices A and B that are compatible in the sense that the number of columns of A equals the number of rows of B. (In general, an
参考来源
- 位置:《算法导论(第4版)》附录D《矩阵》(OEBPS/appendix004.xhtml,文本字符[0,5000))。
- 结论依据:附录D矩阵定义、性质和问题;Art_P1768–P1798公式图逐项查看。
- 原始内容:We define matrix multiplication as follows. Start with two matrices A and B that are compatible in the sense that the number of columns of A equals the number of rows of B . (In general, an