@@ -91,8 +91,8 @@ To clone_or_cast(From&& f) {
9191// / As of TiledArray 1.1 Tensor represents a batch of tensors with same Range
9292// / (the default batch size = 1).
9393// / \tparam T The value type of this tensor
94- // / \tparam A The allocator type for the data; only default-constructible
95- // / allocators are supported to save space
94+ // / \tparam Allocator The allocator type for the data; only
95+ // / default-constructible allocators are supported to save space
9696template <typename T, typename Allocator>
9797class Tensor {
9898 // meaningful error if T& is not assignable, see
@@ -352,14 +352,14 @@ class Tensor {
352352 // / default-initialized (which, for `T` with trivial default constructor,
353353 // / means data is uninitialized).
354354 // / \param range The range of the tensor
355- // / \param nbatch The number of batches (default is 1)
355+ // / \param nb The number of batches (default is 1)
356356 explicit Tensor (const range_type& range, nbatches nb = 1 )
357357 : Tensor(range, nb.n, default_construct{true }) {}
358358
359359 // / Construct a tensor of tensor values, setting all elements to the same
360360 // / value
361361
362- // / \param range An array with the size of of each dimension
362+ // / \param range An array with the size of each dimension
363363 // / \param value The value of the tensor elements
364364 template <
365365 typename Value,
@@ -376,7 +376,7 @@ class Tensor {
376376
377377 // / Construct a tensor of scalars, setting all elements to the same value
378378
379- // / \param range An array with the size of of each dimension
379+ // / \param range An array with the size of each dimension
380380 // / \param value The value of the tensor elements
381381 template <typename Value,
382382 typename std::enable_if<std::is_convertible_v<Value, value_type> &&
@@ -391,7 +391,7 @@ class Tensor {
391391
392392 // / \tparam ElementIndexOp callable of signature
393393 // / `value_type(const Range::index_type&)`
394- // / \param range An array with the size of of each dimension
394+ // / \param range An array with the size of each dimension
395395 // / \param element_idx_op a callable of type ElementIndexOp
396396 template <typename ElementIndexOp,
397397 typename = std::enable_if_t <std::is_invocable_r_v<
@@ -437,7 +437,7 @@ class Tensor {
437437 // / than copied to make the semantics of this to be consistent
438438 // / between tensors of scalars and tensors of scalars; specifically,
439439 // / if `T1` is a tensor of scalars the constructed tensor is
440- // / is independent of \p other, thus should apply clone to inner
440+ // / independent of \p other, thus should apply clone to inner
441441 // / tensor nests to behave similarly for nested tensors
442442 template <
443443 typename T1 ,
@@ -459,7 +459,7 @@ class Tensor {
459459 // / than copied to make the semantics of this to be consistent
460460 // / between tensors of scalars and tensors of tensors; specifically,
461461 // / if `T1` is a tensor of scalars the constructed tensor is
462- // / is independent of \p other, thus should apply clone to inner
462+ // / independent of \p other, thus should apply clone to inner
463463 // / tensor nests to behave similarly for nested tensors
464464 template <
465465 typename T1 , typename Perm,
@@ -667,7 +667,7 @@ class Tensor {
667667 return result;
668668 }
669669
670- // / cloning an rvalue ref forwards the contents of this
670+ // / cloning a rvalue ref forwards the contents of this
671671 // / @return a deep copy of `*this`
672672 // / @post this is in a moved-from state
673673 Tensor clone () && { return std::move (*this ); }
0 commit comments