Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

diversification_block #2

Open
bolin12 opened this issue Jul 7, 2020 · 0 comments
Open

diversification_block #2

bolin12 opened this issue Jul 7, 2020 · 0 comments

Comments

@bolin12
Copy link

bolin12 commented Jul 7, 2020

        if index_c + 1 == c:
            end_c = c + 1
        else:
            end_c = (index_c + 1) * block_c
        if index_r + 1 == r:
            end_r = r + 1
        else:
            end_r = (index_r + 1) * block_r
        res[index_r * block_r: end_r, index_c * block_c:end_c] = 1

why if index_c + 1==c:
end_c = c+1 rather than (c+1) * block_c ?

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

No branches or pull requests

1 participant