摘要 |
A device receives, in a technical computing environment (TCE), a heterogeneous array that includes columns and rows, and receives a command that references multiple columns and one or more rows of the heterogeneous array. The device determines, based on the command, that the referenced multiple columns of the heterogeneous array include a same data type. The device creates, based on the command and based on determining that the referenced multiple columns of the heterogeneous array include the same data type, a homogeneous array that includes the referenced multiple columns and the referenced one or more rows of the heterogeneous array. The device outputs the homogeneous array for further processing. |
主权项 |
1. A method comprising:
receiving, in a technical computing environment (TCE), a heterogeneous array that includes columns and rows,
the receiving the heterogeneous array being performed by a device; receiving a command for use in creating a homogeneous array from the heterogeneous array,
the command referencing multiple columns and one or more rows of the heterogeneous array,the receiving the command being performed by the device; determining that the referenced multiple columns of the heterogeneous array include a single data type or multiple data types that are convertible to a same data type,
the determining being performed by the device; creating, based on the command and based on determining that the referenced multiple columns of the heterogeneous array include the single data type or the multiple data types that are convertible to the same data type, the homogeneous array from the heterogeneous array,
creating the homogeneous array from the heterogeneous array including extracting the referenced multiple columns and the referenced one or more rows from the heterogeneous array,the homogeneous array including the referenced multiple columns and the referenced one or more rows of the heterogeneous array,the TCE including an operation that is operable on the homogeneous array and that is not operable on the heterogeneous array,the creating the homogeneous array being performed by the device; and outputting the homogeneous array for further processing,the outputting the homogeneous array being performed by the device. |