Maptitude GISDK Help |
Creates a vector.
Added to Version 6.0/2012.
Vector (int length, string type, array options)
Argument |
Contents |
length |
The number of elements in the vector |
type |
The type of number ("Double", "Float", "Long" (the default), or" Short"), or the type "String" |
Options |
Type |
Contents |
Constant |
Number |
The value to use to fill the vector with a single constant value |
Sequence |
2 Numbers |
Start value and Step value, to fill the vector with the sequence of numbers starting at value Start and going in increments of value Step |
Row Based |
String |
"True" (the default) means v.rowbased will be "True"; "False" means v.columnbased will be "True" |
Column Based |
String |
"True" means v.columnbased will be "True"; "False" (the default) means v.rowbased will be "True" |
A vector.
By default the vector is row-based and has all elements set to null.
For more information on vectors, see Vectors.
v = Vector(10, "float", {{"Constant", 1.4},{"Column Based", "True"}})
ShowArray({v, v.length, v.rowbased, v.columnbased})
n = v.length
seq_vec = Vector(n, "long", {{"Sequence", 1, 1}})
ShowArray({seq_vec})
GISDK Function |
Summary |
Copies an array to a vector |
|
Copies a vector to a new vector |
|
Constructs a cumulative vector in a new vector |
|
Concatenates vectors into one, combined long vector |
|
Creates a vector from a field in a view|set |
|
Creates vectors from fields in a view|set |
|
Fills values into a field in a view|set from a vector |
|
Fills values into fields in a view|set from vectors |
|
Sorts the elements of a vector in ascending order |
|
Sorts an array of vectors in ascending order, based on the first vector |
|
Transposes an array of arrays, where element b[i][j] = a[j][i] |
|
Computes a given statistic for the vector |
|
Copies a vector to an array |
©2025 Caliper Corporation | www.caliper.com |