[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-01 UTC."],[],[],null,["# mp.packet_creator.create_matrix\n\n\u003cbr /\u003e\n\ncreate_matrix(matrix: numpy.ndarray\\[numpy.float32\\[m, n\\]\\], transpose: bool = False) -\\\u003e mediapipe.python._framework_bindings.packet.Packet\n\n#### View aliases\n\n\n**Main aliases**\n\n[`mp.tasks.vision.holistic_landmarker.packet_creator.create_matrix`](https://ai.google.dev/edge/api/mediapipe/python/edge/api/mediapipe/python/mp/packet_creator/create_matrix)\n\n\u003cbr /\u003e\n\n mp.packet_creator.create_matrix()\n\nCreate a MediaPipe Matrix Packet from a 2d numpy float ndarray.\n\nThe method copies data from the input MatrixXf and the returned packet owns\na MatrixXf object.\n\nArgs:\nmatrix: A 2d numpy float ndarray.\ntranspose: A boolean to indicate if the input matrix needs to be transposed.\nDefault to False.\n\nReturns:\nA MediaPipe Matrix Packet.\n\nRaises:\nTypeError: If the input is not a 2d numpy float ndarray.\n\nExamples:\npacket = mp.packet_creator.create_matrix(\nnp.array(\\[\\[.1, .2, .3\\], \\[.4, .5, .6\\]\\])\nmatrix = mp.packet_getter.get_matrix(packet)"]]