lion03 / thrust

Automatically exported from code.google.com/p/thrust
Apache License 2.0
0 stars 0 forks source link

Consider Thrust Numeric library #216

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
maximum & minimum & absolute_value et al don't belong in thrust/functional.h 
but they are useful because algorithms can't take fcn ptrs yet

Thrust vectors should always fire constructors but a vector of numeric types 
shouldn't for performance reasons - numeric_vector needn't

Thrust should have mathematical vector types that actually work with extra 
goodness like a tuple interface

valarray is < because it doesn't do fusion, but it would be trivial to get 
something even better with a numeric_range template with math ops defined for it

All this stuff could go into a numeric sub-library

Original issue reported on code.google.com by jaredhoberock on 11 Sep 2010 at 7:38

GoogleCodeExporter commented 8 years ago
Mind elaborating on "Thrust vectors should always fire constructors but a 
vector of numeric types shouldn't for performance reasons - numeric_vector 
needn't"?   I'd like to understand what the issue is.

Original comment by andrew.c...@gmail.com on 12 Sep 2010 at 11:51

GoogleCodeExporter commented 8 years ago
There are some details in issue 180

Original comment by jaredhoberock on 12 Sep 2010 at 11:56

GoogleCodeExporter commented 8 years ago
Issue 131 has been merged into this issue.

Original comment by jaredhoberock on 7 Oct 2010 at 4:16

GoogleCodeExporter commented 8 years ago
Issue 180 has been merged into this issue.

Original comment by jaredhoberock on 7 Oct 2010 at 4:37

GoogleCodeExporter commented 8 years ago

Original comment by jaredhoberock on 3 Nov 2010 at 12:18

GoogleCodeExporter commented 8 years ago
If we make vector more conforming [1], we ought to be able to enable users to 
implement uninitialized vectors themselves.

As a side effect, cusp data structures won't need to unsafely implement 
themselves via thrust::detail::vector_base.

[1] 
http://stackoverflow.com/questions/7218574/avoiding-default-construction-of-elem
ents-in-standard-containers

Original comment by jaredhoberock on 28 Aug 2011 at 10:46

GoogleCodeExporter commented 8 years ago
Forwarded to https://github.com/thrust/thrust/issues/71

Original comment by jaredhoberock on 7 May 2012 at 9:25