I like that!

On 19.08.2013, at 18:48, Olivier Grisel <notifications@github.com> wrote:

> In sklearn/utils/extmath.py:
> 
> > +    """
> > +
> > +    if B.shape[0] != A.shape[A.ndim - 1]:  # check adopted from '_dotblas.c'
> > +        raise ValueError('matrices are not aligned')
> > +
> > +    if A.dtype != B.dtype or any(x.dtype not in (np.float32, np.float64)
> > +        for x in [A, B]):
> > +        warnings.warn('Data must be of same type. Supported types '
> > +                      'are 32 and 64 bit float. '
> > +                      'Falling back to np.dot.', DataConversionWarning)
> > +        return np.dot(A, B)
> > +    if ((A.ndim == 1 or B.ndim == 1) or
> > +        (min(A.shape) == 1) or (min(B.shape) == 1) or
> > +        (A.ndim != 2) or (B.ndim != 2)):
> > +        warnings.warn('Data must be 2D with more than one colum / row.'
> > +                      'Falling back to np.dot', DataConversionWarning)
> What would be the name NonBLASDotWarning?
> 
> —
> Reply to this email directly or view it on GitHub.