博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Derivatives of scalars, vector functions and matrices
阅读量:4040 次
发布时间:2019-05-24

本文共 1461 字,大约阅读时间需要 4 分钟。

There are six kinds of derivatives that can be expressed as matrices:

The partials with respect to the numerator are laid out according to the shape ofY while the partials with respect to the denominator are laid out according to the transpose ofX. For example, dy/dx is a column vector while dy/dx is a row vector (assumingx and y are column vectors—otherwise it is flipped). Each of these derivatives can be tediously computed via partials, but this section shows how they instead can be computed with matrix manipulations.

Assuming x and y are column vectors, A, X, Y are Matrix

This is where the operators and identities developed in the following sections are useful. For example, since the derivative ofY with respect to X cannot be represented by a matrix, it is customary to use dvec(Y)/dvec(X) instead (vec is defined below). If the purpose of differentiation is to equate the derivative to zero, then this transformation doesn’t affect the result. 

引用于

  Scalar y Vector y (size m) Matrix Y (size m×n)
Notation Type Notation Type Notation Type
Scalar x \frac{\partial y}{\partial x} scalar \frac{\partial \mathbf{y}}{\partial x} (numerator layout) size-m 

(denominator layout) size-m 

\frac{\partial \mathbf{Y}}{\partial x} (numerator layout) m×nmatrix
Vector x (size n) \frac{\partial y}{\partial \mathbf{x}} (numerator layout) size-n 

(denominator layout) size-n 

\frac{\partial \mathbf{y}}{\partial \mathbf{x}} (numerator layout) m×n matrix

(denominator layout) n×m matrix

\frac{\partial \mathbf{Y}}{\partial \mathbf{x}}  ?
Matrix X (sizep×q) \frac{\partial y}{\partial \mathbf{X}} (numerator layout) q×p matrix

(denominator layout) p×q matrix

\frac{\partial \mathbf{y}}{\partial \mathbf{X}}  ? \frac{\partial \mathbf{Y}}{\partial \mathbf{X}}  ?

引用于https://en.wikipedia.org/wiki/Matrix_calculus#Layout_conventions

一般我们采用numerator layout

你可能感兴趣的文章
自然计算时间复杂度杂谈
查看>>
当前主要目标和工作
查看>>
使用 Springboot 对 Kettle 进行调度开发
查看>>
一文看清HBase的使用场景
查看>>
解析zookeeper的工作流程
查看>>
搞定Java面试中的数据结构问题
查看>>
慢慢欣赏linux make uImage流程
查看>>
linux内核学习(7)脱胎换骨解压缩的内核
查看>>
以太网基础知识
查看>>
慢慢欣赏linux 内核模块引用
查看>>
kprobe学习
查看>>
慢慢欣赏linux phy驱动初始化2
查看>>
慢慢欣赏linux CPU占用率学习
查看>>
2020年终总结
查看>>
Homebrew指令集
查看>>
React Native(一):搭建开发环境、出Hello World
查看>>
React Native(二):属性、状态
查看>>
JSX使用总结
查看>>
React Native(四):布局(使用Flexbox)
查看>>
React Native(七):Android双击Back键退出应用
查看>>