changeset 23453:2eb7dc15f9fa

use DEFALIAS to define inverse * inv.cc (inverse): Define with DEFALIAS instead of DEFUN.
author John W. Eaton <jwe@octave.org>
date Fri, 28 Apr 2017 13:49:27 -0400
parents 0af6dbede266
children 30b6eccd6708
files libinterp/corefcn/inv.cc
diffstat 1 files changed, 1 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/inv.cc	Fri Apr 28 13:59:51 2017 -0400
+++ b/libinterp/corefcn/inv.cc	Fri Apr 28 13:49:27 2017 -0400
@@ -231,19 +231,4 @@
 
 */
 
-// FIXME: this should really be done with an alias, but
-// alias_builtin() won't do the right thing if we are actually using
-// dynamic linking.
-
-DEFUN (inverse, args, nargout,
-       doc: /* -*- texinfo -*-
-@deftypefn  {} {@var{x} =} inverse (@var{A})
-@deftypefnx {} {[@var{x}, @var{rcond}] =} inverse (@var{A})
-Compute the inverse of the square matrix @var{A}.
-
-This is an alias for @code{inv}.
-@seealso{inv}
-@end deftypefn */)
-{
-  return Finv (args, nargout);
-}
+DEFALIAS (inverse, inv);