Home » U++ Library support » U++ Core » [DISCUSSION] Add 'complex' datatype, to Value too
Re: [DISCUSSION] Add 'complex' datatype, to Value too [message #32804 is a reply to message #32803] |
Fri, 10 June 2011 22:52   |
|
Hi!
You are right about U++ missing the basic mathematical tools. As a physicist, I have needed the complex numbers in my programs many times. The same goes for many other mathematical tools.
Complex type doesn't really fit into Core, but what about creating a Math package, that would include such tools? It could also use the Eigen package (btw: I think there is already a complex numbers type in eigen, what about just wrapping that one?) and the fftw package you talked about. And possibly others, as they emerge.
About your proposed implementation: It looks quite good, from the quick look it has most of the basic functions I ever needed... I don't think I would really use a Value compatibility, but if you write it, I won't mind I have only one objection: The "complex::i" is not very useful. It is too long to use in equations I would prefer something like global constant/macro named just "I". In uppercase to avoid problems with "int i", which is on thousands of places in any program I know
Best regards,
Honza
|
|
|
 |
|
[DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: Tom1 on Sun, 12 June 2011 18:04
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: koldo on Mon, 13 June 2011 08:47
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: Tom1 on Mon, 13 June 2011 11:20
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: Tom1 on Mon, 13 June 2011 19:24
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: mirek on Mon, 13 June 2011 20:12
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: mirek on Tue, 14 June 2011 08:15
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: mirek on Sat, 25 June 2011 19:48
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: mirek on Sun, 26 June 2011 09:30
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: mirek on Mon, 27 June 2011 18:04
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: mirek on Tue, 28 June 2011 09:16
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: mirek on Wed, 06 July 2011 13:17
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: mirek on Wed, 06 July 2011 17:25
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: mirek on Wed, 06 July 2011 19:02
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: mirek on Wed, 06 July 2011 19:03
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: mirek on Wed, 06 July 2011 19:31
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: unknown user on Wed, 06 July 2011 23:23
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: Zbych on Wed, 06 July 2011 22:19
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: mirek on Thu, 07 July 2011 08:19
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: mirek on Thu, 07 July 2011 17:40
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: mirek on Sat, 30 July 2011 10:11
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
|
 |
|
Re: [DISCUSSION] Add 'complex' datatype, to Value too
By: koldo on Mon, 01 August 2011 09:50
|
Goto Forum:
Current Time: Tue Apr 29 20:02:05 CEST 2025
Total time taken to generate the page: 0.00976 seconds
|