has_type

dolfin.cpp.la.has_type(tensor, subclass)

Return wether tensor is of the given subclass.