version 1.10, 2005/02/10 04:59:21 |
version 1.11, 2009/03/24 08:00:50 |
|
|
@comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/array.texi,v 1.9 2003/12/18 10:26:20 ohara Exp $ |
@comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/array.texi,v 1.10 2005/02/10 04:59:21 noro Exp $ |
\BJP |
\BJP |
@node $BG[Ns(B,,, $BAH$_9~$_H!?t(B |
@node $BG[Ns(B,,, $BAH$_9~$_H!?t(B |
@section $BG[Ns(B |
@section $BG[Ns(B |
|
|
\E |
\E |
|
|
@menu |
@menu |
* newvect:: |
* newvect vector vect:: |
* ltov:: |
* ltov:: |
* vtol:: |
* vtol:: |
* newbytearray:: |
* newbytearray:: |
* newmat:: |
* newmat matrix:: |
* size:: |
* size:: |
* det nd_det invmat:: |
* det nd_det invmat:: |
|
|
* qsort:: |
* qsort:: |
@end menu |
@end menu |
|
|
\JP @node newvect,,, $BG[Ns(B |
\JP @node newvect vector vect,,, $BG[Ns(B |
\EG @node newvect,,, Arrays |
\EG @node newvect vector vect,,, Arrays |
@subsection @code{newvect} |
@subsection @code{newvect}, @code{vector}, @code{vect} |
@findex newvect |
@findex newvect |
|
@findex vector |
|
@findex vect |
|
|
@table @t |
@table @t |
@item newvect(@var{len}[,@var{list}]) |
@item newvect(@var{len}[,@var{list}]) |
|
@item vector(@var{len}[,@var{list}]) |
\JP :: $BD9$5(B @var{len} $B$N%Y%/%H%k$r@8@.$9$k(B. |
\JP :: $BD9$5(B @var{len} $B$N%Y%/%H%k$r@8@.$9$k(B. |
\EG :: Creates a new vector object with its length @var{len}. |
\EG :: Creates a new vector object with its length @var{len}. |
|
@item vect([@var{elements}]) |
|
\JP :: @var{elements} $B$rMWAG$H$9$k%Y%/%H%k$r@8@.$9$k(B. |
|
\EG :: Creates a new vector object by @var{elements}. |
@end table |
@end table |
|
|
@table @var |
@table @var |
|
|
@item list |
@item list |
\JP $B%j%9%H(B |
\JP $B%j%9%H(B |
\EG list |
\EG list |
|
@item elements |
|
\JP $BMWAG$NJB$S(B |
|
\EG elements of the vector |
@end table |
@end table |
|
|
@itemize @bullet |
@itemize @bullet |
\BJP |
\BJP |
@item |
@item |
$BD9$5(B @var{len} $B$N%Y%/%H%k$r@8@.$9$k(B. $BBh(B 2 $B0z?t$,$J$$>l9g(B, |
@code{vect} $B$OMWAG$NJB$S$+$i%Y%/%H%k$r@8@.$9$k(B. |
|
@item |
|
@code{vector} $B$O(B @code{newvect} $B$NJLL>$G$"$k(B. |
|
@item |
|
@code{newvect} $B$OD9$5(B @var{len} $B$N%Y%/%H%k$r@8@.$9$k(B. $BBh(B 2 $B0z?t$,$J$$>l9g(B, |
$B3F@.J,$O(B 0 $B$K=i4|2=$5$l$k(B. $BBh(B 2 $B0z?t$,$"$k>l9g(B, |
$B3F@.J,$O(B 0 $B$K=i4|2=$5$l$k(B. $BBh(B 2 $B0z?t$,$"$k>l9g(B, |
$B%$%s%G%C%/%9$N>.$5$$@.J,$+$i(B, $B%j%9%H$N(B |
$B%$%s%G%C%/%9$N>.$5$$@.J,$+$i(B, $B%j%9%H$N(B |
$B3FMWAG$K$h$j=i4|2=$5$l$k(B. $B3FMWAG$O(B, $B@hF,$+$i=g$K(B |
$B3FMWAG$K$h$j=i4|2=$5$l$k(B. $B3FMWAG$O(B, $B@hF,$+$i=g$K(B |
|
|
$B$r=q$-49$($k$3$H$,$G$-$k(B. |
$B$r=q$-49$($k$3$H$,$G$-$k(B. |
\E |
\E |
\BEG |
\BEG |
|
@item |
|
@code{vect} creates a new vector object by its elements. |
|
@item |
|
@code{vector} is an alias of @code{newvect}. |
@item |
@item |
Creates a new vector object with its length @var{len} and its elements |
@code{newvect} creates a new vector object with its length @var{len} and its elements |
all cleared to value 0. |
all cleared to value 0. |
If the second argument, a list, is given, the vector is initialized by |
If the second argument, a list, is given, the vector is initialized by |
the list elements. |
the list elements. |
Line 137 separated simply by a `blank space', while those of a |
|
Line 154 separated simply by a `blank space', while those of a |
|
[5,6] |
[5,6] |
[4] size(A); |
[4] size(A); |
[5] |
[5] |
[5] def afo(V) @{ V[0] = x; @} |
[5] length(A); |
[6] afo(A)$ |
5 |
[7] A; |
[6] vect(1,2,3,4,[5,6]); |
|
[ 1 2 3 4 [5,6] ] |
|
[7] def afo(V) @{ V[0] = x; @} |
|
[8] afo(A)$ |
|
[9] A; |
[ x 2 3 4 [5,6] ] |
[ x 2 3 4 [5,6] ] |
@end example |
@end example |
|
|
Line 301 similar to that of @code{newvect}. |
|
Line 322 similar to that of @code{newvect}. |
|
@fref{newvect}. |
@fref{newvect}. |
@end table |
@end table |
|
|
\JP @node newmat,,, $BG[Ns(B |
\JP @node newmat matrix,,, $BG[Ns(B |
\EG @node newmat,,, Arrays |
\EG @node newmat matrix,,, Arrays |
@subsection @code{newmat} |
@subsection @code{newmat}, @code{matrix} |
@findex newmat |
@findex newmat |
|
@findex matrix |
|
|
@table @t |
@table @t |
@item newmat(@var{row},@var{col} [,[[@var{a},@var{b},...],[@var{c},@var{d},...],...]]) |
@item newmat(@var{row},@var{col} [,[[@var{a},@var{b},...],[@var{c},@var{d},...],...]]) |
|
@item matrix(@var{row},@var{col} [,[[@var{a},@var{b},...],[@var{c},@var{d},...],...]]) |
\JP :: @var{row} $B9T(B @var{col} $BNs$N9TNs$r@8@.$9$k(B. |
\JP :: @var{row} $B9T(B @var{col} $BNs$N9TNs$r@8@.$9$k(B. |
\EG :: Creates a new matrix with @var{row} rows and @var{col} columns. |
\EG :: Creates a new matrix with @var{row} rows and @var{col} columns. |
@end table |
@end table |
Line 327 similar to that of @code{newvect}. |
|
Line 350 similar to that of @code{newvect}. |
|
@itemize @bullet |
@itemize @bullet |
\BJP |
\BJP |
@item |
@item |
|
@code{matrix} $B$O(B @code{newmat} $B$NJLL>$G$"$k(B. |
|
@item |
@var{row} $B9T(B @var{col} $BNs$N9TNs$r@8@.$9$k(B. $BBh(B 3 $B0z?t$,$J$$>l9g(B, |
@var{row} $B9T(B @var{col} $BNs$N9TNs$r@8@.$9$k(B. $BBh(B 3 $B0z?t$,$J$$>l9g(B, |
$B3F@.J,$O(B 0 $B$K=i4|2=$5$l$k(B. $BBh(B 3 $B0z?t$,$"$k>l9g(B, |
$B3F@.J,$O(B 0 $B$K=i4|2=$5$l$k(B. $BBh(B 3 $B0z?t$,$"$k>l9g(B, |
$B%$%s%G%C%/%9$N>.$5$$@.J,$+$i(B, $B3F9T$,(B, $B%j%9%H$N(B |
$B%$%s%G%C%/%9$N>.$5$$@.J,$+$i(B, $B3F9T$,(B, $B%j%9%H$N(B |
Line 343 similar to that of @code{newvect}. |
|
Line 368 similar to that of @code{newvect}. |
|
$B$r=q$-49$($k$3$H$,$G$-$k(B. |
$B$r=q$-49$($k$3$H$,$G$-$k(B. |
\E |
\E |
\BEG |
\BEG |
|
@item |
|
@code{matrix} is an alias of @code{newmat}. |
@item |
@item |
If the third argument, a list, is given, the newly created matrix |
If the third argument, a list, is given, the newly created matrix |
is initialized so that each element of the list (again a list) |
is initialized so that each element of the list (again a list) |
Line 459 in a rational expression. |
|
Line 486 in a rational expression. |
|
|
|
\JP @node det nd_det invmat,,, $BG[Ns(B |
\JP @node det nd_det invmat,,, $BG[Ns(B |
\EG @node det nd_det invmat,,, Arrays |
\EG @node det nd_det invmat,,, Arrays |
@subsection @code{det},@code{invmat} |
@subsection @code{det}, @code{nd_det}, @code{invmat} |
@findex det |
@findex det |
|
@findex nd_det |
@findex invmat |
@findex invmat |
|
|
@table @t |
@table @t |