Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

import numpy as np a = np.array([['apple', 'frog'],[[3,2], 3]], dtype=object); a /// array([[apple, frog], [[3, 2], 3]], dtype=object)

import numpy as np a = np.array([['apple', 'frog'],[[3,2], 3]], dtype=object); a /// a

array([[apple, frog], [[3, 2], 3]], dtype=object)

Sage Matrices have entries as ring elements.... so this can be done in python.

import numpy as np a = np.array([['apple', 'frog'],[[3,2], 3]], dtype=object); a

array([[apple, frog], [[3, 2], 3]], dtype=object)

Sage Matrices have entries as ring elements.... so this can be done in python.numpy instead.