Mercurial > octave-nkf
comparison src/builtins.cc @ 19:cbd2e6016014
[project @ 1993-08-10 20:13:07 by jwe]
(general_functions): Add balance to the list.
author | jwe |
---|---|
date | Tue, 10 Aug 1993 20:13:07 +0000 |
parents | 78fd87e624cb |
children | 19b973bc5464 |
comparison
equal
deleted
inserted
replaced
18:15a1c5152f3d | 19:cbd2e6016014 |
---|---|
201 "all(X): are all elements of X nonzero?\n", }, | 201 "all(X): are all elements of X nonzero?\n", }, |
202 | 202 |
203 { "any", 2, 1, builtin_any, | 203 { "any", 2, 1, builtin_any, |
204 "any(X): are any elements of X nonzero?\n", }, | 204 "any(X): are any elements of X nonzero?\n", }, |
205 | 205 |
206 { "balance", 4, 4, builtin_balance, | |
207 "balancing for algebraic and generalized eigenvalue prblems\n\ | |
208 Usage: \n\ | |
209 algebraic eigenvalues problem:\n\ | |
210 aa = balance(a{,opt}) or [{dd,}aa] = balance(a{,opt})\n\ | |
211 generalized eigenvalue problem:\n\ | |
212 [cc, dd, aa, bb] = balance (a, b {,opt})\n\ | |
213 where 'opt' is an optional single character argument as follows: \n\ | |
214 'N' or 'n': no balancing; arguments copied, transformation(s) \n\ | |
215 set to identity\n\ | |
216 'P' or 'p': permute argument(s) to isolate eigenvalues where possible\n\ | |
217 'S' or 's': scale to improve accuracy of computed eigenvalues\n\ | |
218 'B' or 'b': (default) permute and scale, in that order. Rows/columns of a \n\ | |
219 (and b) that are isolated by permutation are not scaled\n\ | |
220 [dd, aa] = balance (a, opt) returns aa = dd\a*dd,\n\ | |
221 [cc, dd, aa, bb] = balance (a, b, opt) returns aa (bb) = cc*a*dd (cc*b*dd)\n", }, | |
222 | |
206 { "clc", 1, 0, builtin_clc, | 223 { "clc", 1, 0, builtin_clc, |
207 "clear screen\n", }, | 224 "clear screen\n", }, |
208 | 225 |
209 { "clock", 1, 0, builtin_clock, | 226 { "clock", 1, 0, builtin_clock, |
210 "return current date and time in vector\n", }, | 227 "return current date and time in vector\n", }, |