Commit 4c644a96 authored by Philipp Arras's avatar Philipp Arras
Browse files


parent 0e9b31c3
......@@ -39,7 +39,10 @@ class ValueInserter(LinearOperator):
self._domain = makeDomain(UnstructuredDomain(1))
self._target = DomainTuple.make(target)
index = tuple(index)
if not all([isinstance(n, int) and n>=0 and n<[i] for i, n in enumerate(index)]):
if not all([
isinstance(n, int) and n >= 0 and n <[i]
for i, n in enumerate(index)
raise TypeError
self._index = index
self._capability = self.TIMES | self.ADJOINT_TIMES
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment