dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #15266
[Bug 427047] [NEW] Vector indexing in Python with NumPy indices
Public bug reported:
The following breaks:
import dolfin, numpy
x = Vector(10)
print x[numpy.int32(0)]
print x[numpy.int64(0)]
print x[numpy.array((0, 1), dtype='I')
The typechecks in la_post.i looks like they can be expanded. (I tried it
myself but couldn't get it working correctly.)
** Affects: dolfin
Importance: Medium
Assignee: Johan Hake (johan-hake)
Status: New
** Changed in: dolfin
Importance: Undecided => Medium
** Changed in: dolfin
Assignee: (unassigned) => Johan Hake (johan-hake)
--
Vector indexing in Python with NumPy indices
https://bugs.launchpad.net/bugs/427047
You received this bug notification because you are subscribed to DOLFIN.
Status in DOLFIN: New
Bug description:
The following breaks:
import dolfin, numpy
x = Vector(10)
print x[numpy.int32(0)]
print x[numpy.int64(0)]
print x[numpy.array((0, 1), dtype='I')
The typechecks in la_post.i looks like they can be expanded. (I tried it myself but couldn't get it working correctly.)
Follow ups
References