@@ -215,11 +215,11 @@ struct AssignConversionProxy {
215215};
216216
217217/* *
218- * Takes a vector reference and gives back a helper object. This object helps when you want to assign one vector to another
219- * vector of a different type. It's a way to enable implicit type conversion .
218+ * Takes a vector reference and gives back a helper object. This object allows you to assign
219+ * a vector of a different type to another vector while perofrming implicit type converion .
220220 *
221- * For example, if `x = expression;` does not compile because `x` and `expression` are different vector types, you can use
222- * `cast_to(x) = expression;` to make it work.
221+ * For example, if `x = expression;` does not compile because `x` and `expression` are
222+ * different vector types, you can use `cast_to(x) = expression;` to make it work.
223223 *
224224 * Example
225225 * =======
@@ -240,7 +240,7 @@ KERNEL_FLOAT_INLINE AssignConversionProxy<T, M> cast_to(T& input) {
240240 * Example
241241 * =======
242242 * ```
243- * vec<int, 3> a = fill<3>(42); // return [42, 42, 42]
243+ * vec<int, 3> a = fill<3>(42); // returns [42, 42, 42]
244244 * ```
245245 */
246246template <size_t N, typename T>
@@ -255,7 +255,7 @@ KERNEL_FLOAT_INLINE vector<T, extent<N>> fill(T value = {}, extent<N> = {}) {
255255 * Example
256256 * =======
257257 * ```
258- * vec<int, 3> a = zeros<int, 3>(); // return [0, 0, 0]
258+ * vec<int, 3> a = zeros<int, 3>(); // returns [0, 0, 0]
259259 * ```
260260 */
261261template <typename T, size_t N>
@@ -270,7 +270,7 @@ KERNEL_FLOAT_INLINE vector<T, extent<N>> zeros(extent<N> = {}) {
270270 * Example
271271 * =======
272272 * ```
273- * vec<int, 3> a = ones<int, 3>(); // return [1, 1, 1]
273+ * vec<int, 3> a = ones<int, 3>(); // returns [1, 1, 1]
274274 * ```
275275 */
276276template <typename T, size_t N>
@@ -286,7 +286,7 @@ KERNEL_FLOAT_INLINE vector<T, extent<N>> ones(extent<N> = {}) {
286286 * =======
287287 * ```
288288 * vec<int, 3> a = {1, 2, 3};
289- * vec<int, 3> b = fill_like(a, 42); // return [42, 42, 42]
289+ * vec<int, 3> b = fill_like(a, 42); // returns [42, 42, 42]
290290 * ```
291291 */
292292template <typename V, typename T = vector_value_type<V>, typename E = vector_extent_type<V>>
@@ -301,7 +301,7 @@ KERNEL_FLOAT_INLINE vector<T, E> fill_like(const V&, T value) {
301301 * =======
302302 * ```
303303 * vec<int, 3> a = {1, 2, 3};
304- * vec<int, 3> b = zeros_like(a); // return [0, 0, 0]
304+ * vec<int, 3> b = zeros_like(a); // returns [0, 0, 0]
305305 * ```
306306 */
307307template <typename V, typename T = vector_value_type<V>, typename E = vector_extent_type<V>>
@@ -316,7 +316,7 @@ KERNEL_FLOAT_INLINE vector<T, E> zeros_like(const V& = {}) {
316316 * =======
317317 * ```
318318 * vec<int, 3> a = {1, 2, 3};
319- * vec<int, 3> b = ones_like(a); // return [1, 1, 1]
319+ * vec<int, 3> b = ones_like(a); // returns [1, 1, 1]
320320 * ```
321321 */
322322template <typename V, typename T = vector_value_type<V>, typename E = vector_extent_type<V>>
0 commit comments