.. default-domain:: chpl .. module:: Vectors Vectors ======= **Usage** .. code-block:: chapel use Vectors; .. data:: config param VectorGrowthRate: real = 1.5 .. record:: VectorComparator .. method:: proc keyPart(vec: Vector(?eltType), idx: integral) .. class:: Vector .. attribute:: type eltType .. attribute:: const growthRate: real .. attribute:: var dom = {0..-1} .. attribute:: var arr: [dom] eltType .. attribute:: var sz: int .. attribute:: var cap: int .. method:: proc init(type eltType, initialSize: integral = 0, growthRate = VectorGrowthRate) .. method:: proc init(arr: [?D] ?eltType, growthRate = VectorGrowthRate) .. method:: proc append(elt: eltType) .. method:: proc intersection(other: Vector(eltType)): Vector(eltType) .. method:: proc intersectionSize(other: Vector(eltType)): int .. method:: proc append(elts: [] eltType) .. method:: proc append(ir: _iteratorRecord) .. method:: proc sort() .. method:: proc this(idx: integral) ref .. itermethod:: iter these() ref .. itermethod:: iter these(param tag: iterKind) ref .. method:: proc size .. method:: proc clear() .. method:: proc toArray() .. method:: proc readWriteThis(f)