Skip to content

Commit

Permalink
dox cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed May 9, 2019
1 parent 1cff994 commit e0150e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/TiledArray/array_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -505,12 +505,12 @@ namespace TiledArray {

/// Array begin iterator

/// \return A const iterator to the first element of the array.
/// \return A const iterator to the first local element of the array.
iterator begin() {
// Get the pmap iterator
typename pmap_interface::const_iterator it = TensorImpl_::pmap()->begin();

// Find the fist non-zero iterator
// Find the first non-zero iterator
const typename pmap_interface::const_iterator end = TensorImpl_::pmap()->end();
while((it != end) && TensorImpl_::is_zero(*it)) ++it;

Expand All @@ -520,7 +520,7 @@ namespace TiledArray {

/// Array begin iterator

/// \return A const iterator to the first element of the array.
/// \return A const iterator to the first local element of the array.
const_iterator cbegin() const {
// Get the pmap iterator
typename pmap_interface::const_iterator it = TensorImpl_::pmap()->begin();
Expand All @@ -535,14 +535,14 @@ namespace TiledArray {

/// Array end iterator

/// \return A const iterator to one past the last element of the array.
/// \return A const iterator to one past the last local element of the array.
iterator end() {
return iterator(this, TensorImpl_::pmap()->end());
}

/// Array end iterator

/// \return A const iterator to one past the last element of the array.
/// \return A const iterator to one past the last local element of the array.
const_iterator cend() const {
return const_iterator(this, TensorImpl_::pmap()->end());
}
Expand Down

0 comments on commit e0150e6

Please sign in to comment.