⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mf_cholinv.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
字号:
{smcl}
{* 23mar2005}{...}
{cmd:help mata cholinv()}
{hline}
{* index inverse matrix}{...}
{* index cholinv()}{...}
{* index _cholinv()}{...}
{* index LAPACK}{...}

{title:Title}

{p 4 4 2}
{bf:[M-5] cholinv() -- Symmetric, positive-definite matrix inversion}


{title:Syntax}

{p 8 12 2}
{it:numeric matrix}
{cmd:cholinv(}{it:numeric} {it:matrix} {it:A}{cmd:)}

{p 8 12 2}
{it:numeric matrix}
{cmd:cholinv(}{it:numeric} {it:matrix} {it:A}{cmd:,}
{it:real scalar tol}{cmd:)}


{p 8 12 2}
{it:void}{bind:         }
{cmd:_cholinv(}{it:numeric} {it:matrix} {it:A}{cmd:)}

{p 8 12 2}
{it:void}{bind:         }
{cmd:_cholinv(}{it:numeric} {it:matrix} {it:A}{cmd:,}
{it:real scalar tol}{cmd:)}


{title:Description}

{p 4 4 2}
{cmd:cholinv(}{it:A}{cmd:)} 
and 
{cmd:cholinv(}{it:A}{cmd:,} {it:tol}{cmd:)}
return the inverse of real or complex, symmetric (Hermitian),
positive-definite, square matrix {it:A}.

{p 4 4 2}
{cmd:_cholinv(}{it:A}{cmd:)} 
and
{cmd:_cholinv(}{it:A}{cmd:,} {it:tol}{cmd:)}
do the same thing except that, rather than returning the inverse matrix, they
overwrite the original matrix {it:A} with the inverse.

{p 4 4 2}
In all cases, optional argument {it:tol} specifies the tolerance for
determining singularity; see {it:Remarks} below.


{title:Remarks}

{p 4 4 2}
These routines calculate the inverse of a symmetric, positive-definite
square matrix {it:A}.  See {bf:{help mf_luinv:[M-5] luinv()}} for the
inverse of a general square matrix.

{p 4 4 2}
{it:A} is required to be square and positive definite.
See 
{bf:{help mf_qrinv:[M-5] qrinv()}}
and
{bf:{help mf_pinv:[M-5] pinv()}} for generalized inverses of nonsquare, or
rank-deficient matrices.
See {bf:{help mf_invsym:[M-5] invsym()}} for generalized inverses of real,
symmetric matrices.

{p 4 4 2}
{cmd:cholinv(}{it:A}{cmd:)} is logically equivalent to 
{cmd:cholsolve(}{it:A}{cmd:, I(rows(}{it:A}{cmd:)))};
see {bf:{help mf_cholsolve:[M-5] cholsolve()}} 
for details and for use of the optional {it:tol} argument.


{title:Conformability}

    {cmd:cholinv(}{it:A}{cmd:,} {it:tol}{cmd:)}:
		{it:A}:  {it:n x n}
	      {it:tol}:  1 {it:x} 1    (optional)
	   {it:result}:  {it:n x n}
		
    {cmd:_cholinv(}{it:A}{cmd:,} {it:tol}{cmd:)}:
	{it:input:}
		{it:A}:  {it:n x n}
	      {it:tol}:  1 {it:x} 1    (optional)
	{it:output:}
		{it:A}:  {it:n x n}


{title:Diagnostics}

{p 4 4 2}
The inverse returned by these functions is {cmd:real} if {it:A} is 
{cmd:real}, and is {cmd:complex} if {it:A} is {cmd:complex}.
If you use these functions with a nonpositive-definite matrix, or 
a matrix that is too close to singularity,  
returned will be a matrix of missing values.  The determination 
of singularity is made relative to {it:tol}.  See 
{it:Tolerance} under {it:Remarks} in 
{bf:{help mf_cholsolve:[M-5] cholsolve()}} for details.

{p 4 4 2}
{cmd:cholinv(}{it:A}{cmd:)}  and {cmd:_cholinv(}{it:A}{cmd:)} 
return a result containing all missing values if {it:A} is not 
positive definite or if {it:A} contains missing values.

{p 4 4 2}
{cmd:_cholinv(}{it:A}{cmd:)} aborts with error if {it:A} is a view.

{p 4 4 2}
See
{bf:{help mf_cholsolve:[M-5] cholsolve()}}
and
{bf:{help m1_tolerance:[M-1] tolerance}}
for information on the optional {it:tol} argument.

{p 4 4 2}
Both functions use the elements from the lower triangle of {it:A} without
checking whether {it:A} is symmetric or, in the complex case, Hermitian.

{title:Source code}

{p 4 4 2}
{view cholinv.mata, adopath asis:cholinv.mata},
{view _cholinv.mata, adopath asis:_cholinv.mata},
{view ltinv.mata, adopath asis:ltinv.mata},
{view _ltinv.mata, adopath asis:_ltinv.mata}

    
{title:Also see}

{p 4 13 2}
Manual:  {hi:[M-5] cholinv()}

{p 4 13 2}
Online:  help for 
{bf:{help mf_invsym:[M-5] invsym()}},
{bf:{help mf_luinv:[M-5] luinv()}},
{bf:{help mf_qrinv:[M-5] qrinv()}},
{bf:{help mf_pinv:[M-5] pinv()}},
{bf:{help mf_cholsolve:[M-5] cholsolve()}};
{bf:{help mf_solve_tol:[M-5] solve_tol()}};
{bf:{help m4_matrix:[M-4] matrix}}
{p_end}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -