I've been trying to solve this for more than 2 hours.

I have written a script where I put some debugging `print`s

```
...
print(array)
print(m)
print(np.dot(m.ravel(),array.ravel()))
...

```

When I launch it I have this output:

```
$ ./test.py 
[[    0     0     0     0     0     0     0]
 [    0     0     0     0     0     0     0]
 [    0     0     0     0     0     0     0]
 [    0     0     0 20303 20303 20303 20303]
 [20303 20303 20303 20303 20303 20303 20303]
 [20303 20303 20303 20303 20303 20303 20303]
 [20303 20303 20303 20303 20303 20303 20303]]
[[False False False False False False False]
 [False False False False False False False]
 [False False False False False False False]
 [False False False False  True False False]
 [False False  True False  True False False]
 [False False False  True False False False]
 [False False False False False False False]]
15676

```

When I try to reproduce this behaviour in a python console, I have a different result for the dot product:

```
$ /usr/bin/python3
Python 3.4.2 (default, Oct  8 2014, 10:45:20) 
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> array=np.array([[    0,     0,     0,     0,     0,     0,     0],
[    0,     0,     0,     0,     0,     0,     0],
[    0,     0,     0,     0,     0,     0,     0],
[    0,     0,     0, 20303, 20303, 20303, 20303],
[20303, 20303, 20303, 20303, 20303, 20303, 20303],
[20303, 20303, 20303, 20303, 20303, 20303, 20303],
[20303, 20303, 20303, 20303, 20303, 20303, 20303]])
>>> 
>>> m=np.array([[False, False, False, False, False, False, False],
[False, False, False, False, False, False, False],
[False, False, False, False, False, False, False],
[False, False, False, False,  True, False, False],
[False, False,  True, False,  True, False, False],
[False, False, False,  True, False, False, False],
[False, False, False, False, False, False, False]])
>>> np.dot(m.ravel(),array.ravel())
81212

```

What can cause this ? By the way, `81212` is the result I expect here and really don't understand what's happening in my script.