Skip to content

matrix().max() reports TypeError: float() argument must be a string or a number #17248

@HuangYanqiColumbia

Description

@HuangYanqiColumbia

The following reporducing code reports TypeError: float() argument must be a string or a number

Reproducing code example:

import numpy as np
np.matrix(np.random.randn(100, 100)).max()

Error message:


Screen Shot 2020-09-04 at 8 57 27 AM

Numpy/Python version information:

1.18.1 3.8.3 (default, May 19 2020, 18:47:26)
[GCC 7.3.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions