generating to generate numpy array

If I understand your question correctly you’re after the identity matrix.

    X = np.identity(8, dtype=int)

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top