Quansight-Labs / numpy.net

A port of NumPy to .Net
BSD 3-Clause "New" or "Revised" License
137 stars 15 forks source link

np.logical_and should return boolean arrays and not integer arrays #20

Closed Happypig375 closed 2 years ago

Happypig375 commented 2 years ago
using NumpyDotNet;
np.logical_and(np.array(new[]{0, 1, 2}), np.array(new[]{1, 0, 2}))
INT32 
{ 0, 0, 1 }
import numpy as np
print(np.logical_and(np.array([0, 1, 2]), np.array([1, 0, 2])))
[False False  True]
Happypig375 commented 2 years ago

fixed