Maptitude GISDK Help

TransposeArray()

 

Summary

Transposes an array of arrays, where element b[i][j] = a[j][i].

 

Changes

Added to Version 6.0/2012. Renamed in Version 2014.

 

Syntax

b =TransposeArray(array a)

 

Argument Contents
a An array of arrays

 

Returns

An array of arrays, where element b[i][j] = a[j][i].

 

Notes

Error Codes

Error Type Meaning
Error The input array contains an element that is not an array

 

Examples

b = TransposeArray({{1,2}, {3,4}}) // b = {{1,3}, {2,4}}

b = TransposeArray({{1, "a"}, , {3}}) // b = {{1, , 3}, {"a", , }}

 

See Also

GISDK Function Summary
ArrayToVector() Copies an array to a vector
CopyVector() Copies a vector to a new vector
CumulativeVector() Constructs a cumulative vector in a new vector
ConcatenateVectors() Concatenates vectors into one, combined long vector
GetDataVector() Creates a vector from a field in a view|set
GetDataVectors() Creates vectors from fields in a view|set
SetDataVector() Fills values into a field in a view|set from a vector
SetDataVectors() Fills values into fields in a view|set from vectors
SortVector() Sorts the elements of a vector in ascending order
SortVectors() Sorts an array of vectors in ascending order, based on the first vector
Vector() Creates a vector
VectorStatistic() Computes a given statistic for the vector
VectorToArray() Copies a vector to an array

 

 

©2025 Caliper Corporation www.caliper.com