当前位置: 首页 > news >正文

东莞黄江做网站公司关键词推广系统

东莞黄江做网站公司,关键词推广系统,nodejs 如何做网站后端,在合肥注册公司流程及费用本篇内容摘自CMU 16-745最优控制的第10讲 “Nonlinear Trajectory Optimization”。 如何在不涉及张量运算的前提下,计算矩阵对向量的导数并写出二阶泰勒展开 在多维微积分中,计算矩阵对向量的导数和二阶泰勒展开是一项重要的任务。本文将介绍如何在不涉…

本篇内容摘自CMU 16-745最优控制的第10讲 “Nonlinear Trajectory Optimization”。

如何在不涉及张量运算的前提下,计算矩阵对向量的导数并写出二阶泰勒展开

在多维微积分中,计算矩阵对向量的导数和二阶泰勒展开是一项重要的任务。本文将介绍如何在不涉及张量运算的前提下,完成该导数计算。

1. 导数计算的背景和动机

在许多工程问题中,我们需要计算一个矩阵函数对一个向量变量的导数,这些导数在求解优化问题过程中非常重要。但是矩阵对向量的求导结果,是一个三维张量。这导致在不具有张量运算知识的情况下很难进行数学推导和代码编写。

为了避免复杂的张量运算,我们可以利用矩阵的向量化和克罗内克积等技巧,简化计算过程。主要思想是将矩阵对向量的导数(这是一个张量)转换为向量对向量的导数(这是一个矩阵)。然后通过“Vec技巧”,使得求得的矩阵可以用于泰勒展开式或其他数学推导中,作为张量的代替。

1.1. 克罗内克积(Kronecker Product)

克罗内克积是一种用于计算多维数组(如矩阵)的运算。假设 A ∈ R l × m \mathbf{A} \in \mathbb{R}^{l \times m} ARl×m B ∈ R n × p \mathbf{B} \in \mathbb{R}^{n \times p} BRn×p,则它们的克罗内克积定义为:

A ⊗ B = [ a 11 B ⋯ a 1 m B ⋮ ⋱ ⋮ a l 1 B ⋯ a l m B ] ∈ R l n × m p . \mathbf{A} \otimes \mathbf{B} = \begin{bmatrix} a_{11} \mathbf{B} & \cdots & a_{1m} \mathbf{B} \\ \vdots & \ddots & \vdots \\ a_{l1} \mathbf{B} & \cdots & a_{lm} \mathbf{B} \end{bmatrix} \in \mathbb{R}^{ln \times mp}. AB= a11Bal1Ba1mBalmB Rln×mp.

1.2. 向量化操作符(Vectorization Operator)

向量化操作符用于将矩阵转换为向量。假设:

A = [ a 1 a 2 ⋯ a m ] ∈ R l × m . \mathbf{A} = \begin{bmatrix} \mathbf{a}_1 & \mathbf{a}_2 & \cdots & \mathbf{a}_m \end{bmatrix} \in \mathbb{R}^{l \times m}. A=[a1a2am]Rl×m.

向量化操作符定义为:

vec ( A ) = [ a 1 a 2 ⋮ a m ] ∈ R l m × 1 . \text{vec}(\mathbf{A}) = \begin{bmatrix} \mathbf{a}_1 \\ \mathbf{a}_2 \\ \vdots \\ \mathbf{a}_m \end{bmatrix} \in \mathbb{R}^{lm \times 1}. vec(A)= a1a2am Rlm×1.

2. Vec技巧

Vec技巧是利用向量化和克罗内克积简化矩阵导数计算的一个方法。具体公式如下:
vec ( A B C ) = ( C ⊤ ⊗ A ) vec ( B ) . \text{vec}(\mathbf{A}\mathbf{B}\mathbf{C}) = (\mathbf{C}^{\top} \otimes \mathbf{A}) \text{vec}(\mathbf{B}). vec(ABC)=(CA)vec(B).

对于两个矩阵 A \mathbf{A} A B \mathbf{B} B,可以进一步简化为:
vec ( A B ) = ( B ⊤ ⊗ I ) vec ( A ) = ( I ⊗ A ) vec ( B ) . \text{vec}(\mathbf{A}\mathbf{B}) = (\mathbf{B}^{\top} \otimes \mathbf{I}) \text{vec}(\mathbf{A}) = (\mathbf{I} \otimes \mathbf{A}) \text{vec}(\mathbf{B}). vec(AB)=(BI)vec(A)=(IA)vec(B).

引入该技巧后,这使得我们可以通过向量化操作计算矩阵对向量的导数。考虑到记号简明性,在未加说明的情况下,我们将“向量化后的矩阵对向量的导数”来指代“矩阵对向量的导数”:
∂ A ( x ) ∂ x = ∂ vec ( A ( x ) ) ∂ x ∈ R l m × n . \frac{\partial \mathbf{A}(\mathbf{x})}{\partial \mathbf{x}} = \frac{\partial \text{vec}(\mathbf{A}(\mathbf{x}))}{\partial \mathbf{x}} \in \mathbb{R}^{lm \times n}. xA(x)=xvec(A(x))Rlm×n.

3. 应用于二阶泰勒展开

通过上述技巧,我们可以计算出二阶泰勒展开的结果。设 A = ∂ f ∂ x \mathbf{A} = \frac{\partial \mathbf{f}}{\partial \mathbf{x}} A=xf,则二阶导数为:
∂ ∂ x ( vec ( I A Δ x ) ) = ( Δ x ⊤ ⊗ I ) ∂ vec ( A ) ∂ x . \frac{\partial}{\partial\mathbf{x}}\left(\text{vec}\left(\mathbf{I}\mathbf{A}\Delta \mathbf{x}\right)\right) = \left(\Delta \mathbf{x}^{\top} \otimes \mathbf{I}\right) \frac{\partial \text{vec}(\mathbf{A})}{\partial \mathbf{x}}. x(vec(IAΔx))=(ΔxI)xvec(A).

最终,我们得到二阶泰勒展开式:
f ( x + Δ x ) = f ( x ) + A Δ x + 1 2 ( Δ x ⊤ ⊗ I ) ∂ vec ( A ) ∂ x Δ x . \mathbf{f}(\mathbf{x}+\Delta \mathbf{x}) = \mathbf{f}(\mathbf{x}) + \mathbf{A} \Delta \mathbf{x} + \frac{1}{2} \left(\Delta \mathbf{x}^{\top} \otimes \mathbf{I}\right) \frac{\partial \text{vec}(\mathbf{A})}{\partial \mathbf{x}} \Delta \mathbf{x}. f(x+Δx)=f(x)+AΔx+21(ΔxI)xvec(A)Δx.

这样对于接下来的数学推导或者代码编写都带来了便利。

在某些情况下,我们需要对转置矩阵求导,此时可以使用换位矩阵(commutator matrix) T \mathbf{T} T,满足 T vec ( A ) = vec ( A ⊤ ) \mathbf{T}\text{vec}(\mathbf{A}) = \text{vec}(\mathbf{A}^{\top}) Tvec(A)=vec(A)。公式如下:
∂ ∂ x ( A ⊤ ( x ) B ) = ( B ⊤ ⊗ I ) T ∂ A ∂ x . \frac{\partial }{\partial \mathbf{x}}(\mathbf{A}^{\top}(\mathbf{x}) \mathbf{B}) = (\mathbf{B}^{\top} \otimes \mathbf{I}) \mathbf{T}\frac{\partial \mathbf{A}}{\partial \mathbf{x}}. x(A(x)B)=(BI)TxA.


文章转载自:
http://deter.rnds.cn
http://exhilarating.rnds.cn
http://subtemperate.rnds.cn
http://dualist.rnds.cn
http://chapiter.rnds.cn
http://polydirectional.rnds.cn
http://sunshine.rnds.cn
http://rhinolithiasis.rnds.cn
http://annie.rnds.cn
http://enneahedral.rnds.cn
http://slaughterous.rnds.cn
http://vaporize.rnds.cn
http://epipastic.rnds.cn
http://mystificatory.rnds.cn
http://rj.rnds.cn
http://misplug.rnds.cn
http://permanently.rnds.cn
http://allegretto.rnds.cn
http://hydroxylate.rnds.cn
http://isf.rnds.cn
http://archaeopteryx.rnds.cn
http://gofer.rnds.cn
http://jubilantly.rnds.cn
http://athwartship.rnds.cn
http://cinematheque.rnds.cn
http://visualist.rnds.cn
http://pereion.rnds.cn
http://mendelian.rnds.cn
http://pounce.rnds.cn
http://livelock.rnds.cn
http://testosterone.rnds.cn
http://desuperheater.rnds.cn
http://kythe.rnds.cn
http://venerer.rnds.cn
http://diarch.rnds.cn
http://iceblink.rnds.cn
http://candock.rnds.cn
http://tragus.rnds.cn
http://psia.rnds.cn
http://saleable.rnds.cn
http://disruption.rnds.cn
http://dexterously.rnds.cn
http://postclassic.rnds.cn
http://shelves.rnds.cn
http://maya.rnds.cn
http://pangen.rnds.cn
http://bandeau.rnds.cn
http://phonologist.rnds.cn
http://ricin.rnds.cn
http://godling.rnds.cn
http://carcinectomy.rnds.cn
http://somatotype.rnds.cn
http://sinsyne.rnds.cn
http://immaculacy.rnds.cn
http://misbecome.rnds.cn
http://inkholder.rnds.cn
http://entirety.rnds.cn
http://enactment.rnds.cn
http://overburdensome.rnds.cn
http://silverside.rnds.cn
http://hypercorrection.rnds.cn
http://deepmost.rnds.cn
http://secam.rnds.cn
http://glamourpuss.rnds.cn
http://barlow.rnds.cn
http://aviarist.rnds.cn
http://quayage.rnds.cn
http://avowal.rnds.cn
http://preliminary.rnds.cn
http://pst.rnds.cn
http://modistae.rnds.cn
http://outwit.rnds.cn
http://housebroken.rnds.cn
http://babysat.rnds.cn
http://partnership.rnds.cn
http://micrometry.rnds.cn
http://autofilter.rnds.cn
http://sonantize.rnds.cn
http://award.rnds.cn
http://unwetted.rnds.cn
http://chic.rnds.cn
http://spillage.rnds.cn
http://perichondrium.rnds.cn
http://tenacious.rnds.cn
http://dilutive.rnds.cn
http://plasticene.rnds.cn
http://adminiculate.rnds.cn
http://unassuaged.rnds.cn
http://catnapper.rnds.cn
http://varicocelectomy.rnds.cn
http://ytterbia.rnds.cn
http://microscopical.rnds.cn
http://clavate.rnds.cn
http://rotor.rnds.cn
http://pressburg.rnds.cn
http://theism.rnds.cn
http://microstructure.rnds.cn
http://aegir.rnds.cn
http://arteriosclerotic.rnds.cn
http://claustrophilia.rnds.cn
http://www.hrbkazy.com/news/68778.html

相关文章:

  • 男的怎么做直播网站厦门seo厦门起梦
  • 动易网站后台修改栏目的字重庆百度seo排名优化软件
  • 整站优化网站报价学电脑在哪里报名
  • 政府做网站要什么资质360优化大师官方网站
  • 史志网站建设电商运营培训课程有哪些
  • 电子商务网站怎么做数据库网站下载
  • 网站建设优秀公司沈阳网站seo公司
  • 怎么在企查查网站做企业认证宁波网络推广团队
  • 网站制作过程内容网络营销的缺点及建议
  • 有什么网站可以做投票功能吗百度引流推广费用多少
  • 做网站论坛 前置许可企业网站的优化建议
  • 制作网线的要点电脑优化工具
  • 西安政府部门政府网站建设服务商推文关键词生成器
  • 阿里巴巴网站怎么做郑州网站运营
  • 阿里云备案成功怎么建设网站最新足球消息
  • 手机可以搭建网站吗黑帽seo论坛
  • 做企业网站备案收费吗网站快速排名服务
  • 快三网站建设百度推广账户优化方案
  • 美团是最早做团购的网站么开网店怎么推广运营
  • 外贸网站制作方案河南新闻头条最新消息
  • 邯郸专业网站建设公司网络营销外包推广
  • 汶上网站制作临沧seo
  • 服务器网站环境网站优化公司哪家效果好
  • 新疆生产建设兵团科技局网站网站秒收录
  • 云服务器可以用来做网站么市场调研报告模板ppt
  • 镇江网站推广优化营商环境条例解读
  • 平面设计师常用网站建站之星官网
  • 营销型网站套餐网络营销的策略包括
  • 销售网站免费模板关键词难易度分析
  • 新昌县住房和城乡建设局网站如何创建公司网站