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

📄 mf_eltype.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
字号:
{smcl}
{* 25feb2005}{...}
{cmd:help mata eltype()}
{hline}
{* index eltype()}{...}
{* index orgtype()}{...}

{title:Title}

{p 4 4 2}
{bf:[M-5] eltype() -- Element type and organizational type of object}


{title:Syntax}

{p 8 8 2}
{it:string scalar} {cmd:eltype(}{it:X}{cmd:)}

{p 8 8 2}
{it:string scalar} {cmd:orgtype(}{it:X}{cmd:)}


{title:Description}

{p 4 4 2}
{cmd:eltype()} returns the current {it:eltype} of the argument.

{p 4 4 2}
{cmd:orgtype()} returns the current {it:orgtype} of the argument.

{p 4 4 2}
See help {bf:{help m6_glossary:[M-6] glossary}} 
for a definition of {it:eltype} and {it:orgtype}.


{title:Remarks}

{p 4 4 2}
If {it:X} is a matrix (syntax 1), returned is

		{cmd:eltype(}{it:X}{cmd:)}               {cmd:orgtype(}{it:X}{cmd:)}
		{hline 40}
		{cmd:real}                    {cmd:scalar}
		{cmd:complex}                 {cmd:rowvector}
		{cmd:string}                  {cmd:colvector}
		{cmd:pointer}                 {cmd:matrix}
		{hline 40}

{p 4 4 2}
The returned value reflects the current contents of {it:X}.
That is, {it:X} 
might be declared a {cmd:transmorphic} {cmd:matrix}, but at any 
instant, it contains something, and if that something were 5, returned would
be {cmd:"real"} and {cmd:"scalar"}.

{p 4 4 2}
In the case of {cmd:orgtype()}, returned is 
{cmd:"scalar"} if the object is currently 
1 {it:x} 1; {cmd:"rowvector"} if it is 
1 {it:x k}, {it:k}!=1; {cmd:"colvector"} if it is {it:k x} 1, {it:k}!=1; 
and {cmd:"matrix"} otherwise (it is {it:r x c}, {it:r}!=1, {it:c}!=1).

{p 4 4 2}
{it:X} can be a function.  Returned is

		{cmd:eltype(*(&}{it:func}{cmd:()))}      {cmd:orgtype(*(&}{it:func}{cmd:()))}
		{hline 43}
		{cmd:transmorphic}            {cmd:matrix}
		{cmd:numeric}                 {cmd:vector}
		{cmd:real}                    {cmd:rowvector}
		{cmd:complex}                 {cmd:colvector}
		{cmd:string}                  {cmd:scalar}
		{cmd:pointer}                 {cmd:void}
		{hline 43}

{p 4 4 2}
These types are obtained from the declaration of the function.


{title:Conformability}

    {cmd:eltype(}{it:X}{cmd:)}, {cmd:orgtype(}{it:X}{cmd:)}:
		{it:X}:  {it:r x c}
	   {it:result}:  1 {it:x} 1


{title:Diagnostics}

{p 4 4 2}
None.


{title:Source code}

{p 4 4 2}
Functions are built-in.


{title:Also see}

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

{p 4 13 2}
Online:  help for 
{bf:{help mf_isreal:[M-5] isreal()}},
{bf:{help mf_isview:[M-5] isview()}};
{bf:{help m4_utility:[M-4] utility}}
{p_end}

⌨️ 快捷键说明

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