📄 m3_namelists.hlp
字号:
{smcl}
{* 18mar2005}{...}
{cmd:help m3 namelists}
{hline}
{* index mata tt}{...}
{* index namelists it}{...}
{title:Title}
{p 4 4 2}
{bf:[M-3] namelists -- Specifying matrix and function names}
{title:Syntax}
{p 4 4 2}
Many {cmd:mata} commands allow or require a {it:namelist}, such as
{p 8 16 2}
: {cmd:mata} {cmdab:d:escribe}
[{it:namelist}]
[{cmd:,}
{cmdab:d:etail}
{cmd:all}
]
{p 4 4 2}
A {it:namelist} is defined as a list of matrix and/or function names, such
as
{cmd:alpha beta foo()}
{p 4 4 2}
The above {it:namelist} refers to the matrices {cmd:alpha} and {cmd:beta}
along with the function named {cmd:foo()}.
{p 4 4 2}
Function names always end in {cmd:()}, hence
{cmd:alpha} refers to the matrix named {cmd:alpha}
{cmd:alpha()} refers to the function of the same name
{p 4 4 2}
In addition, names may be specified using the {cmd:*} and {cmd:?} wildcard
characters:
{cmd:*} means zero-or-more characters go here
{cmd:?} means exactly one character goes here
{p 4 4 2}
hence,
{cmd:*} means all matrices
{cmd:*()} means all functions
{cmd:* *()} means all matrices and all functions
{cmd:s*} means all matrices that start with {it:s}
{cmd:s*()} means all functions that start with {it:s}
{cmd:*e} means all matrices that end with {it:e}
{cmd:*e()} means all functions that end with {it:e}
{cmd:s*e} means all matrices that start with {it:s} and end with {it:e}
{cmd:s*e()} means all functions that start with {it:s} and end with {it:e}
{cmd:s?e} means all matrices that start with {it:s} and end with {it:e}
and have one character in between
{cmd:s?e()} means all functions that start with {it:s} and end with {it:e}
and have one character in between
{title:Description}
{p 4 4 2}
{it:Namelists} appear in syntax diagrams.
{title:Remarks}
{p 4 4 2}
Some {it:namelists} allow only matrices, and some allow only functions.
Even when only functions are allowed, you must include the {cmd:()} suffix.
{title:Also see}
{p 4 13 2}
Manual: {hi:[M-3] namelists}
{p 4 13 2}
Online: help for
{bf:{help m3_intro:[M-3] intro}}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -