[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.26 Linear algebra

Procedures for linear algebra.

Function: list->matrix ((x …) …)

creates a matrix from the given list.
Next code

(list->matrix '((1 2 3) (4 5 6)))

will create a matrix .

Function: matrix? obj

returns #t if the object is a matrix.

Function: list->number-vector (x …)

creates a numeric vector form the given list.
Next code

(list->number-vector '(1 2 3))

returns a vector (1 \ 2 \ 3).

Function: number-vector x …

creates a numeric vector form the given numbers.
Next code

(number-vector 1 2 3)

returns a vector (1 \ 2 \ 3).

Function: make-matrix rowsize colsize [fill]

creates a matrix whose elements are equal. Default value of fill is 0.
Next code

(make-matrix 3 4 1)

will create a matrix .

Function: make-number-vector size [fill]

creates a numeric vector whose elements are equal.
Next code

(make-number-vector 3 1)

returns a vector (1 \ 1 \ 1).

Function: matrix-determinant matrix

computes determinant of the matrix.

Function: matrix+ matrix …

[R5RS+] adds all given arguments. This procedure extends for matrices.

Function: matrix- matrix …

[R5RS+] subtracts given arguments from the first argument. This procedure extends for matrices.

Function: matrix* matrix …

[R5RS+] multiplies all given arguments. This procedure extends for quoternions and octonions.

Function: matrix-invert matrix …

computes invert matrix of the matrix.

Function: lu-decompose matrix

decomposes the matrix to P(LU). This procedure returns permutation matrix, L matrix and U matrix.

Function: solve-linear-equation matrix vector

solves the equation A\vec{x}=\vec{b}.

Function: matrix-row-size matrix
Function: matrix-column-size matrix

gets the row(column) size of matrix.

Function: matrix-row-vector matrix n
Function: matrix-column-vector matrix n

gets the nth row(column) vector of matrix.

Function: matrix-transpose matrix

computes transpose of the matrix.


[ << ] [ < ] [ Up ] [ > ] [ >> ]

This document was generated on August 9, 2012 using texi2html 5.0.