06.07.2013 Views

Scilab Bag Of Tricks - Claymore

Scilab Bag Of Tricks - Claymore

Scilab Bag Of Tricks - Claymore

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Variable type Code string Code index<br />

sparse matrix sp 5<br />

sparse boolean matrix spb 6<br />

Matlab® sparse matrix msp 7<br />

linear-state system lss 16<br />

rational function, i.e. quotient of<br />

two polynomials<br />

r 16<br />

hyper-matrix hm 17<br />

? ip 129<br />

Chapter 4. Unknown Spots<br />

Now that we have defined all operand type codes, we can turn to the operator type codes.<br />

Table 4-3. Operator type codes<br />

Caution<br />

Several operators listed in Table 4-3 behave specially! Some, like equality and<br />

inequality tests, are auto-overloaded, i.e. are available even before the user<br />

defines her replacement function. Others cannot be overloaded at all, like<br />

unary plus (all types), and insertion/extraction (tlists).<br />

Warning<br />

There is a mistake in the SCI/doc/Intro.ps concerning this operator. The<br />

first table in Sec. 3.3, page 64 states that code b defines the row-separator “;”.<br />

SCI/doc/Intro.ps is wrong here, but the online help is correct in that the<br />

row-seperator “;” is overloaded with the code f.<br />

Warning<br />

The online-help of <strong>Scilab</strong>-2.5, help overloading, is incorrect, and<br />

SCI/doc/Intro.ps is correct. u is associated with “*.”, and x with “.*”.<br />

Operator Code Note<br />

.’ 0 pure transposition (no complex<br />

conjugate)<br />

< 1 less-than<br />

> 2 greater-than<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!