~ubuntu-branches/ubuntu/utopic/libthrust/utopic

« back to all changes in this revision

Viewing changes to device_vector.h

  • Committer: Package Import Robot
  • Author(s): Andreas Beckmann
  • Date: 2013-07-10 12:57:33 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20130710125733-my19jic71sqsabaj
Tags: 1.7.0-1
* New upstream release.  (Closes: #715362)
* Update watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
    device_vector(void)
68
68
      :Parent() {}
69
69
 
 
70
    /*! This constructor creates a \p device_vector with the given
 
71
     *  size.
 
72
     *  \param n The number of elements to initially craete.
 
73
     */
 
74
    __host__
 
75
    explicit device_vector(size_type n)
 
76
      :Parent(n) {}
 
77
 
70
78
    /*! This constructor creates a \p device_vector with copies
71
79
     *  of an exemplar element.
72
80
     *  \param n The number of elements to initially create.
73
81
     *  \param value An element to copy.
74
82
     */
75
83
    __host__
76
 
    explicit device_vector(size_type n, const value_type &value = value_type())
 
84
    explicit device_vector(size_type n, const value_type &value)
77
85
      :Parent(n,value) {}
78
86
 
79
87
    /*! Copy constructor copies from an exemplar \p device_vector.
122
130
    __host__
123
131
    device_vector(const host_vector<OtherT,OtherAlloc> &v);
124
132
 
 
133
    /*! Assign operator copies from an examplar \p host_vector.
 
134
     *  \param v The \p host_vector to copy.
 
135
     */
 
136
    template<typename OtherT, typename OtherAlloc>
 
137
    __host__
 
138
    device_vector &operator=(const host_vector<OtherT,OtherAlloc> &v)
 
139
    { Parent::operator=(v); return *this; }
 
140
 
125
141
    /*! This constructor builds a \p device_vector from a range.
126
142
     *  \param first The beginning of the range.
127
143
     *  \param last The end of the range.