[project @ 1994-10-04 17:03:34 by jwe]
author |
jwe |
date |
Tue, 04 Oct 1994 17:03:43 +0000 |
parents |
29a7b5b6f0dc |
children |
42731861ee09 |
files |
src/fft.cc src/ifft.cc |
diffstat |
2 files changed, 6 insertions(+), 0 deletions(-)
[+]
|
line diff
--- a/src/fft.cc
+++ b/src/fft.cc
@@ -54,6 +54,9 @@
tree_constant arg = args(0);
int n_points = arg.rows ();
+ if (n_points == 1)
+ n_points = arg.columns ();
+
if (nargin == 2)
n_points = NINT (args(1).double_value ());
--- a/src/ifft.cc
+++ b/src/ifft.cc
@@ -54,6 +54,9 @@
tree_constant arg = args(0);
int n_points = arg.rows ();
+ if (n_points == 1)
+ n_points = arg.columns ();
+
if (nargin == 2)
n_points = NINT (args(1).double_value ());