最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to expand matrix expression in Sympy - Stack Overflow

programmeradmin3浏览0评论

Consider the following code

import sympy as sym

A = sym.MatrixSymbol('A', 5, 3)
E = sym.MatrixSymbol('E', 5, 3)
sym.expand((A*A.T + E*E.T)*(A*A.T + E*E.T))

Sympy just returns (A*A.T + E*E.T)**2. Is it possible to force expansion of the square?

发布评论

评论列表(0)

  1. 暂无评论