1
// Can not handle overloading on enums Preconditioner and KrylovMethod
2
%ignore dolfin::uBlasKrylovSolver;
4
// Fix problem with missing uBlas namespace
6
namespace boost{ namespace numeric{ namespace ublas{}}}
9
// uBlas dummy classes (need to declare since they are now known)
11
class ublas_dense_matrix {};
12
class ublas_sparse_matrix {};
13
class ublas_vector {};
17
%typemap(in) const double* block = double* _array;
18
%typemap(in) (dolfin::uint m, const dolfin::uint* rows) = (int _array_dim, unsigned int* _array);
19
%typemap(in) (dolfin::uint n, const dolfin::uint* cols) = (int _array_dim, unsigned int* _array);
20
%typecheck(SWIG_TYPECHECK_DOUBLE_ARRAY) (dolfin::uint m, const dolfin::uint* rows)
23
$1 = PyArray_Check($input);
26
%typecheck(SWIG_TYPECHECK_DOUBLE_ARRAY) (dolfin::uint n, const dolfin::uint* cols)
29
$1 = PyArray_Check($input);