︠3ca273b8-ce38-46c0-8c36-9bc47e27df5di︠ %md > "I am trying to create the set of 3x3 matrices which have entries in the set [0,1,-1]" ︡118ea2d7-8470-40c0-8244-6a253412a18a︡{"md":"\n> \"I am trying to create the set of 3x3 matrices which have entries in the set [0,1,-1]\"\n"}︡ ︠054a1ae2-39ef-49ff-821e-fc3a3a6190e5︠ v = [] for x in cartesian_product_iterator([[0,1,-1]]*9): v.append(matrix(3,x)) ︡a4285e7f-8cbc-4ff7-9280-5e75a830ae0d︡ ︠1d1424be-29f5-4454-a867-e2c5b739d531︠ len(v) ︡22e7c35d-41b5-4d78-8a3a-93db58fa6197︡{"stdout":"19683\n"}︡ ︠c8f5b4aa-5a32-44a7-82f7-25c70e5c720d︠ v[0] ︡15b02751-0d6f-4dc5-9ff0-32905c45b536︡{"stdout":"[0 0 0]\n[0 0 0]\n[0 0 0]\n"}︡ ︠8e091c0a-af58-44ac-9783-f96e3b1fbce5︠ v[10] ︡49ea9417-23c8-4355-8495-875f99ede198︡{"stdout":"[0 0 0]\n[0 0 0]\n[1 0 1]\n"}︡ ︠6cbeef03-61ff-4e05-a8a6-cc96ec2615de︠