TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Matrix Cookbook examples using SymPy

3 点作者 sierpinsky超过 1 年前

1 comment

sierpinsky超过 1 年前
I recently discovered a unit test file in the SymPy repository that demonstrates how to use SymPy for matrix calculus, specifically for finding derivatives of symbolic matrix expressions. This is of course very useful when working with optimization problems in e.g. machine-learning. The point is that SymPy can do this directly (in matrix form), yet this is not really obvious from the available documentation / content on forums.