convert/Array
convert an array, Array, vector, Vector, matrix, Matrix, list, or listlist to an Array
|
Calling Sequence
|
|
convert( A, Array, opts )
|
|
Parameters
|
|
A
|
-
|
array, Array, vector, Vector, matrix, Matrix, list, listlist; expression to convert
|
opts
|
-
|
(optional) one or more options as described below
|
|
|
|
|
Options
|
|
|
Indicates whether a new rtable should be allocated when converting from other rtable types such as Matrix or Vector. The default is false, meaning that convert will attempt to provide a reference to the existing rtable instead of allocating a new one.
|
|
The option behaves identically to targetformat, but is only valid when expr is not itself a string or ByteArray.
|
|
A string corresponding to one of the file formats described in Formats. The input expr will be decoded using the specified format and the data returned as a Array. If the format specified is not one for which an Array is a valid output type, an error is issued.
|
|
If the format specified is not one for which an Array is a valid output type and no target format is specified, an error is issued.
|
|
A string corresponding to one of the file formats described in Formats. The input expr will be encoded in the specified format and the encoded data returned as an Array.
|
|
Note that this can be used in conjunction with sourceformat to decode data from a source to an arbitrary intermediate expression, then encode it as an Array in a different format.
|
•
|
Any other options specified will be passed to the Array constructor.
|
|
|
Description
|
|
•
|
The convert(A, Array) function converts A into an Array. This is accomplished by passing A and any additional parameters to the Array constructor. No special order is required for the additional parameters.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
>
|
|
>
|
|
| (6) |
>
|
|
| (9) |
>
|
|
| (13) |
>
|
|
| (14) |
>
|
|
| (19) |
>
|
|
|
|
Compatibility
|
|
•
|
The convert/Array command was updated in Maple 2022.
|
•
|
The copy, format, sourceformat and targetformat options were introduced in Maple 2022.
|
|
|
|
|
|
|