We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
eg. in def indx_3dto1d(idx, sz): if (rank(idx) == 1): idx1 = idx[0] * prod(sz[1:3]) + idx[1] * sz[2] + idx[2] else: idx1 = idx[:, 0] * prod(sz[1:3]) + idx[:, 1] * sz[2] + idx[:, 2] return idx1
what's the rank method used?
The text was updated successfully, but these errors were encountered:
To anyone who might stumble upon this:
The rank here is calculating the matrix rank, which post python3 & numpy version (can't recall which one) is calculated with:
numpy.linalg.matrix_rank
Sorry, something went wrong.
No branches or pull requests
eg. in
def indx_3dto1d(idx, sz):
if (rank(idx) == 1):
idx1 = idx[0] * prod(sz[1:3]) + idx[1] * sz[2] + idx[2]
else:
idx1 = idx[:, 0] * prod(sz[1:3]) + idx[:, 1] * sz[2] + idx[:, 2]
return idx1
what's the rank method used?
The text was updated successfully, but these errors were encountered: