Programmer Guide/Command Reference/EVAL/rleqs: Difference between revisions
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
:;<var>B</var>: right side vector or MxL matrix (for multiple solutions) | :;<var>B</var>: right side vector or MxL matrix (for multiple solutions) | ||
:;<var>alg</var>: select a LAPACK algorithm to be used | :;<var>alg</var>: select a LAPACK algorithm to be used | ||
::{class="keinrahmen" | ::{|class="keinrahmen" | ||
|''alg''='''0''' || use DGESV if M=N and DGELS otherwise | |''alg''='''0''' || use DGESV if M=N and DGELS otherwise | ||
|- | |- | ||
Line 12: | Line 12: | ||
|''alg''='''2''' || use always DGELS | |''alg''='''2''' || use always DGELS | ||
|} | |} | ||
;Description: | ;Description: ... | ||
;Result: ... | |||
;Result: | |||
Note: The function <code>cleqs(<var>A</var>, <var>B</var> {, <var>alg</var>})</code> has the same arguments and result as <code>rleqs</code>, but the vectors/matrices ''A'', ''B'' and ''X'' are [[Programmer_Guide/Command_Reference/EVAL/complex arithmetic|complex]]. | Note: The function <code>cleqs(<var>A</var>, <var>B</var> {, <var>alg</var>})</code> has the same arguments and result as <code>rleqs</code>, but the vectors/matrices ''A'', ''B'' and ''X'' are [[Programmer_Guide/Command_Reference/EVAL/complex arithmetic|complex]]. |
Revision as of 16:54, 12 April 2011
These functions implements an interface for the LAPACK functions DGESV, ZGESV, DGELS and ZGELS.
- Usage
rleqs(A, B {, alg})
:- A
- left side MxN matrix x
- B
- right side vector or MxL matrix (for multiple solutions)
- alg
- select a LAPACK algorithm to be used
alg=0 use DGESV if M=N and DGELS otherwise alg=1 use always DGESV, M must be equal to N alg=2 use always DGELS
- Description
- ...
- Result
- ...
Note: The function cleqs(A, B {, alg})
has the same arguments and result as rleqs
, but the vectors/matrices A, B and X are complex.
- See also
- rpoly, interp, rleqs, cleqs