bugGNU Scientific Library - Bugs: bug #22478, Missing functions for complex...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

bug #22478: Missing functions for complex vectors

Submitted by:  -Deleted Account- <bjg>
Submitted on:  Tue 04 Mar 2008 05:14:53 PM UTC  
 
Category: NoneSeverity: 4 - Important
Operating System: Status: Fixed
Assigned to: -Deleted Account- <bjg>Open/Closed: Closed
Release: 1.10

Sat 27 Sep 2008 02:17:56 PM UTC, comment #2:

The missing vector/matrix functions should now be fixed by commit 66db623267811a3574c82672d49bafd273af80e3

Thanks for the bug reports.

-Deleted Account- <bjg>In charge of this item.
Wed 17 Sep 2008 05:01:23 PM UTC, comment #1:

From: "Liam Healy" <liam@healy.washington.dc.us>
To: "Help GSL" <Help-gsl@gnu.org>
Cc:
Subject: [Help-gsl] Complex vector arithmetic
Date: Sun, 14 Sep 2008 17:58:17 -0400

I notice that some vector functions on complex numbers do not exist,
though I can't think of a reason for this. For example, these do not exist:

gsl_vector_complex_add
gsl_vector_complex_float_add
gsl_vector_complex_long_double_add

but all real types do, as well as the corresponding matrix functions:

gsl_matrix_complex_add
gsl_matrix_complex_float_add
gsl_matrix_complex_long_double_add

I made a table of arithmetic functions and definitions I could find in
the library:
real vector real matrix complex vector complex matrix
_add yes yes no yes
_sub yes yes no yes
_mul yes no no no
_mul_elements no yes no yes
_div yes no no no
_div_elements no yes no yes
_scale yes no no yes
_add_constant yes no no yes

I can see that _mul_elements or _dev_elements is used only for
matrices and _mul or _div used only for vectors, but I cannot see why
vectors do not have definitions for complex types but matrices do.

Is there a reason for the absence of definitions for complex vectors?

(GSL 1.11 on Debian Lenny amd64)

Liam

_____________________________________________
Help-gsl mailing list
-unavailable-
http://lists.gnu.org/mailman/listinfo/help-gsl

-Deleted Account- <bjg>In charge of this item.
Tue 04 Mar 2008 05:14:53 PM UTC, original submission:

From: Federico Zenith <federico.zenith@member.fsf.org>
To: -unavailable-
Subject: [Help-gsl] Missing functions for complex vectors
Date: Mon, 03 Mar 2008 13:50:43 +0100

Hi,
I am working on a C++ GSL wrapper (yes, there are not enough of them
already around :-), and I have been working on vectors last week; while
writing the wrapper, I noticed a couple of oddities I'd like to point
out before reporting them as a bug (I am using the GSL version 1.10):

1) complex vectors have defined all properties mentioned on this page:
http://www.gnu.org/software/gsl/manual/html_node/Vector-properties.html
except isnonneg(). I am not sure what's the meaning of ispos() or
isneg() for a vector of complex numbers, I suppose it means "both real
AND imaginary part are positive", but this should be documented;
furthermore, I do not understand why, if ispos() and isneg() could be
defined, why could not isnonneg() be as well.

2) Vector operations, defined on this page:
http://www.gnu.org/software/gsl/manual/html_node/Vector-operations.html
are not defined for complex types. As far as I can guess, all these
operations would still make sense for complex numbers. What is really
odd is, the same operations are defined for complex matrices.

Did I miss something?

Cheers,
-Federico

-Deleted Account- <bjg>In charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bjg
  • -unavailable- added by bjg
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 27 Sep 2008 02:17:56 PM UTCbjgStatusConfirmed=>Fixed
      Assigned toNone=>bjg
      Open/ClosedOpen=>Closed
      Carbon-Copy-=>Added -unavailable-
      Carbon-Copy-=>Added -unavailable-
    Wed 17 Sep 2008 05:01:23 PM UTCbjgSeverity3 - Normal=>4 - Important

    Back to the top


    Powered by Savane 3.1-cleanup