Debian Codegraph @

help/cs/html/ch08.html

raw symbols SCIP
1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Chapter 8. Matice v jazyce GEL</title><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="index.html" title="Příručka k aplikaci Genius"><link rel="up" href="index.html" title="Příručka k aplikaci Genius"><link rel="prev" href="ch07s06.html" title="Načítání programů"><link rel="next" href="ch08s02.html" title="Operátor konjugované transpozice a transpozice"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 8. Matice v jazyce GEL</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch07s06.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch08s02.html">Next</a></td></tr></table><hr></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a name="genius-gel-matrices"></a>Chapter 8. Matice v jazyce GEL</h1></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl class="toc"><dt><span class="sect1"><a href="ch08.html#genius-gel-matrix-support">Zadávání matic</a></span></dt><dt><span class="sect1"><a href="ch08s02.html">Operátor konjugované transpozice a transpozice</a></span></dt><dt><span class="sect1"><a href="ch08s03.html">Lineární algebra</a></span></dt></dl></div><p>Genius podporuje vektory a matice a jeho součástí je rozsáhlá knihovna pro práci s maticemi a s funkcemi lineární algebry.</p><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="genius-gel-matrix-support"></a>Zadávání matic</h2></div></div></div><p lang="en">
2 To enter matrices, you can use one of the following two syntaxes. You can either enter
3 the matrix on one line, separating values by commas and rows by semicolons. Or you
4 can enter each row on one line, separating
5 values by commas.
6 You can also just combine the two methods.
7 So to enter a 3x3 matrix
8 of numbers 1-9 you could do
9 </p><pre lang="en" class="programlisting">[1,2,3;4,5,6;7,8,9]
10 </pre><p lang="en">
11 or
12 </p><pre lang="en" class="programlisting">[1, 2, 3
13 4, 5, 6
14 7, 8, 9]
15 </pre><p lang="en">
16 Do not use both ';' and return at once on the same line though.
17 </p><p lang="en">
18 You can also use the matrix expansion functionality to enter matrices.
19 For example you can do:
20 </p><pre lang="en" class="programlisting">a = [ 1, 2, 3
21 4, 5, 6
22 7, 8, 9]
23 b = [ a, 10
24 11, 12]
25 </pre><p lang="en">
26 and you should get
27 </p><pre lang="en" class="programlisting">[1, 2, 3, 10
28 4, 5, 6, 10
29 7, 8, 9, 10
30 11, 11, 11, 12]
31 </pre><p lang="en">
32 similarly you can build matrices out of vectors and other stuff like that.
33 </p><p lang="en">
34 Another thing is that non-specified spots are initialized to 0, so
35 </p><pre lang="en" class="programlisting">[1, 2, 3
36 4, 5
37 6]
38 </pre><p lang="en">
39 will end up being
40 </p><pre lang="en" class="programlisting">
41 [1, 2, 3
42 4, 5, 0
43 6, 0, 0]
44 </pre><p lang="en">
45 </p><p>Když jsou matice vyhodnocovány, jsou vyhodnocovány a procházeny po řádcích. Je to úplně stejné jako operátor <code class="literal">M@(j)</code>, který prochází matice po řádcích.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Věnujte pozornost při vracení z výrazů uvnitř závorek <code class="literal">[ ]</code>, protože tam mají lehce odlišný význam. Začnete tím nový řádek.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch07s06.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="ch08s02.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Načítání programů </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Operátor konjugované transpozice a transpozice</td></tr></table></div></body></html>