[BACK]Return to Matrix.texi CVS log [TXT][DIR] Up to [local] / OpenXM / src / asir-contrib / packages / doc

File: [local] / OpenXM / src / asir-contrib / packages / doc / Attic / Matrix.texi (download)

Revision 1.3, Mon Jan 3 09:15:53 2000 UTC (24 years, 6 months ago) by okutani
Branch: MAIN
CVS Tags: maekawa-ipv6, RELEASE_20000124, RELEASE_1_1_3, RELEASE_1_1_2
Changes since 1.2: +51 -51 lines

Renamed function names.

@c $OpenXM: OpenXM/src/asir-contrib/packages/doc/Matrix.texi,v 1.3 2000/01/03 09:15:53 okutani Exp $
@node Matrix operations,,, $B$=$NB>$NH!?t(B
@section Matrix operations
$B%U%!%$%k(B @file{gr} $B$,I,MW$G$9(B.
@menu
* matrix_1::
* matrix_diag::
* matrix_trans::
* matrix_inverse::
* matrix_solve::
* matrix_kernel::
@end menu

@node matrix_1,,, Matrix operations
@subsection @code{matrix_1}
@findex matrix_1
@table @t
@item matrix_1(@var{N})
::  @var{N} $B<!C10L9TNs$r@8@.$7$^$9(B.
@end table
@table @var
@item return
$B9TNs(B
@item N
$B@0?t(B
@end table
@itemize @bullet
@item  @code{matrix_1}$B$NNc(B.
@end itemize
@example
[297] matrix_1(1);
[ 1 ]

[298] matrix_1(2);
[ 1 0 ]
[ 0 1 ]

[299] matrix_1(3);
[ 1 0 0 ]
[ 0 1 0 ]
[ 0 0 1 ]
@end example

@node matrix_diag,,, Matrix operations
@subsection @code{matrix_diag}
@findex matrix_diag
@table @t
@item matrix_diag(@var{L})
::  $B%j%9%H(B @var{L} $B$NMWAG$rBP3Q@.J,$H$9$kBP3Q9TNs$r@8@.$7$^$9(B.
@end table
@table @var
@item return
$B9TNs(B
@item L
$B%j%9%H(B
@end table
@itemize @bullet
@item  @code{matrix_diag}$B$NNc(B.
@end itemize
@example
[301] matrix_diag([1,2,3]);
[ 1 0 0 ]
[ 0 2 0 ]
[ 0 0 3 ]

[302] matrix_diag([a,b,c]);
[ a 0 0 ]
[ 0 b 0 ]
[ 0 0 c ]
@end example

@node matrix_trans,,, Matrix operations
@subsection @code{matrix_trans}
@findex matrix_trans
@table @t
@item matrix_trans(@var{A})
::  $B9TNs(B @var{A} $B$NE>CV9TNs$r5a$a$^$9(B.
@end table
@table @var
@item return
$B9TNs(B
@item A
$B9TNs(B or $B%j%9%H(B
@end table
@itemize @bullet
@item  @code{matrix_trans}$B$NNc(B.
@end itemize
@example
[303] matrix_trans([[a,b],[c,d]]);
[ a c ]
[ b d ]

[304] matrix_trans([[1,2,3],[4,5,6],[7,8,9]]);
[ 1 4 7 ]
[ 2 5 8 ]
[ 3 6 9 ]
@end example

@node matrix_inverse,,, Matrix operations
@subsection @code{matrix_inverse}
@findex matrix_inverse
@table @t
@item matrix_inverse(@var{A})
::  $B9TNs(B @var{A} $B$N5U9TNs$r5a$a$^$9(B.
@end table
@table @var
@item return
$B9TNs(B
@item A
$B9TNs(B or $B%j%9%H(B
@end table
@itemize @bullet
@item $B9TNs(B @var{A} $B$N@.J,$OM-M}?t(B or $BB?9`<0(B.
@item @code{matrix_inverse}$B$NNc(B.
@end itemize
@example
[309] matrix_inverse([[1,1],[1,2]]);
[ 2 -1 ]
[ -1 1 ]

[310] matrix_inverse([[a,b],[c,d]]);
[ (d)/(d*a-c*b) (-b)/(d*a-c*b) ]
[ (-c)/(d*a-c*b) (a)/(d*a-c*b) ]
@end example

@node matrix_solve,,, Matrix operations
@subsection @code{matrix_solve}
@findex matrix_solve
@table @t
@item matrix_solve(@var{A},@var{X},@var{Y})
::  @code{matrix_solve}$B$OJ}Dx<0(B A*X=Y $B$N2r$r5a$a$^$9(B.
@end table
@table @var
@item return
$B%j%9%H(B
@item A
$B9TNs(B or $B%j%9%H(B
@item X
$B%Y%/%H%k(B or $B%j%9%H(B
@item Y
$B%Y%/%H%k(B or $B%j%9%H(B
@end table
@itemize @bullet
@item $B9TNs(B @var{A} $B$N@.J,$OM-M}?t(B or $BB?9`<0(B.
@item  @code{matrix_solve}$B$NNc(B.
@end itemize
@example
[376] matrix_solve([[1,-1],[2,3]],[x,y],[1,1]);
[[x,4/5],[y,-1/5]]

[377] matrix_solve([[a,b],[c,d]],[x,y],[1,1]);
[[x,(-b+d)/(d*a-c*b)],[y,(a-c)/(d*a-c*b)]]
@end example

@node matrix_kernel,,, Matrix operations
@subsection @code{matrix_kernel}
@findex matrix_kernel
@table @t
@item matrix_kernel(@var{A})
::  @code{matrix_kernel}$B$O9TNs(B A $B$N(B kernel $B$N4pDl$r5a$a$^$9(B.
@end table
@table @var
@item return
$B%j%9%H(B
@item A
$B9TNs(B or $B%j%9%H(B
@end table
@itemize @bullet
@item $B9TNs(B @var{A} $B$N@.J,$OM-M}?t(B or $BB?9`<0(B.
@item  @code{matrix_kernel}$B$NNc(B.
@end itemize
@example
[383] matrix_kernel([[1,2,3,4],[1,0,1,0]]);
[2,[[1,0,-1,1/2],[0,1,0,-1/2]]]

[384] matrix_kernel([[1,2,3,4],[1,0,1,0],[0,0,0,1]]);
[1,[[1,1,-1,0]]]
@end example