~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to src/pydolfin/dolfin_la_pre.i

  • Committer: Johannes Ring
  • Date: 2008-03-05 22:43:06 UTC
  • Revision ID: johannr@simula.no-20080305224306-2npsdyhfdpl2esji
The BIG commit!

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Can not handle overloading on enums Preconditioner and KrylovMethod
2
 
%ignore dolfin::uBlasKrylovSolver;
3
 
 
4
 
// Fix problem with missing uBlas namespace
5
 
%inline %{
6
 
  namespace boost{ namespace numeric{ namespace ublas{}}}
7
 
%}
8
 
 
9
 
// uBlas dummy classes (need to declare since they are now known)
10
 
namespace dolfin {
11
 
  class ublas_dense_matrix {};
12
 
  class ublas_sparse_matrix {};
13
 
  class ublas_vector {};
14
 
}
15
 
 
16
 
 
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) 
21
 
{
22
 
    // rows typemap
23
 
    $1 = PyArray_Check($input);
24
 
}
25
 
 
26
 
%typecheck(SWIG_TYPECHECK_DOUBLE_ARRAY) (dolfin::uint n, const dolfin::uint* cols) 
27
 
{
28
 
    // cols typemap
29
 
    $1 = PyArray_Check($input);
30
 
}