changeset 32551:cbc71d7652e8

new height and width aliases for rows and columns (bug #64995) * data.cc: New height and width aliases.
author John W. Eaton <jwe@octave.org>
date Fri, 08 Dec 2023 09:12:23 -0500
parents 3c98a91a976d
children 3d9e866f9ae2
files libinterp/corefcn/data.cc
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/data.cc	Thu Dec 07 00:26:55 2023 -0500
+++ b/libinterp/corefcn/data.cc	Fri Dec 08 09:12:23 2023 -0500
@@ -3008,6 +3008,8 @@
   return ovl ((octave_value (args(0)).size ())(0));
 }
 
+DEFALIAS (height, rows);
+
 /*
 %!assert (rows (ones (2,5)), 2)
 %!assert (rows (ones (5,2)), 5)
@@ -3053,6 +3055,8 @@
   return ovl ((octave_value (args(0)).size ())(1));
 }
 
+DEFALIAS (width, columns);
+
 DEFUN (sum, args, ,
        doc: /* -*- texinfo -*-
 @deftypefn  {} {@var{y} =} sum (@var{x})