Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Consider Thrust Numeric library #71

Closed as not planned
Closed as not planned

Description

@jaredhoberock

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

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-elements-in-standard-containers

Forwarded from http://code.google.com/p/thrust/issues/detail?id=216

Activity

  1. added 3 commits that reference this issue on Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3: backlogthrusttype: enhancement

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions