Skip to content

fixed unwanted range behavior if start > end#362

Merged
mtfishman merged 1 commit intoITensor:v3from
chuffa:v3
Sep 2, 2020
Merged

fixed unwanted range behavior if start > end#362
mtfishman merged 1 commit intoITensor:v3from
chuffa:v3

Conversation

@chuffa
Copy link
Copy Markdown
Contributor

@chuffa chuffa commented Aug 17, 2020

Changed the != operator in RangeHelper:
Instead of "!=" use "<" to account for cases where curr_ > end_ from initialization.

Tested the changes so they fix the bug and still give the same output in the other cases.

@mtfishman
Copy link
Copy Markdown
Member

Looks good, thanks!

@mtfishman mtfishman merged commit 7af4030 into ITensor:v3 Sep 2, 2020
strandn pushed a commit to tgingrich/ITensor that referenced this pull request Nov 9, 2020
fixed unwanted range behavior if start > end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants