|
Prev | Next | newlinech |
| Syntax |
$newlinech character$$ |
| See Also | wspace , codep |
newlinech command
enables you to put OMhelp commands in the source code for
these languages.
$ character.
Leading and trailing
white space
in character is ignored.
All subsequent occurrences of character
at the beginning of a line are ignored.
In addition, if a space
follows such an occurrence of character,
the space is also ignored.
(Only one such space is ignored.)
-----------------------------------------------------
The input:
c $newlinech c$$
c $bold Syntax:$$ $syntax//y/ = logdet(/n/, /x/)/$$
c
c $head y$$
c The return value $italic y$$ has prototype
c $syntax/
c real /y/
c /$$
c It value is set equal to the log of the determinant of $italic x$$.
c
c $head n$$
c The argument $italic n$$ has prototype
c $syntax/
c integer /n/
c /$$
c it specifies the dimension of the matrix $italic x$$.
c
c $head x$$
c The argument $italic x$$ has prototype
c $syntax/
c real /x/(/n/, /n/)
c /$$
c it must be a square positive semi-definite matrix.
------------------------------------------------------
results in the output:
c
Syntax: y = logdet(n, x)
real y
It value is set equal to the log of the determinant of x.
integer n
it specifies the dimension of the matrix x.
real x(n, n)
it must be a square positive semi-definite matrix.
------------------------------------------------------
c that occurs before the first newlinech
command is not ignored.
You can avoid this by placing the
newlinech command on the same line as the
begin command for the section.
For example, the input
c $begin logdet$$ $newlinech c$$
c $bold Syntax:$$ $syntax//y/ = logdet(/n/, /x/)/$$
c
c $head y$$
c The return value $italic y$$ has prototype
c $syntax/
c real /y/
c /$$
.
.
.
would not result in any of the c characters
at the being of the input line being printed because
all characters before the begin command are ignored.
newlinech command has effect till the next such command
is executed or the end of the current section (which ever comes first).
The command
$newlinech $$
removes the effect of the current newlinech command without
providing a new character to replace it.