Skip to content
Snippets Groups Projects
Commit 4507c0a2 authored by Alexandru Fikl's avatar Alexandru Fikl
Browse files

fix method call

parent 258bf9f3
No related branches found
No related tags found
1 merge request!85Cleaned up MatrixBlockIndex
...@@ -449,7 +449,8 @@ class MatrixBlockIndex(object): ...@@ -449,7 +449,8 @@ class MatrixBlockIndex(object):
raise ValueError("CL `Array`s are not supported." raise ValueError("CL `Array`s are not supported."
"Use MatrixBlockIndex.get() and then view into matrices.") "Use MatrixBlockIndex.get() and then view into matrices.")
return x[np.ix_(*self.block_indices)] irow, icol = self.block_indices(i)
return x[np.ix_(irow, icol)]
def block_take(self, x, i): def block_take(self, x, i):
"""Retrieve a block from a linear representation of the matrix blocks. """Retrieve a block from a linear representation of the matrix blocks.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment