Procedures

ProcedureLocationProcedure TypeDescription
concatvecfunInterface

returns a new vector joining two input vectors.

echovecfunInterface

alternative to spread, it returns a new vector by replicating the elements in the input vector val times.

everyvecfunInterface

returns a new vector comprising every other consecutive val from the input vector. for example, every second element consecutively.

popvecfunInterface

returns a new vector by deleting the last element in the input vector, or if idx is provided, then delete the element at index idx

popallvecfunInterface

returns a new vector with all vals deleted from the input vector.

popeveryvecfunInterface

returns a new vector sequentially deleting every other element from the input vector using the fortran pack function.

popvalvecfunInterface

returns a new vector with val deleted from the input vector. only the first val is deleted if there are more vals in the input vector.

print_elapsed_timeswatch_modSubroutine
pushvecfunInterface

returns a new vector with val pushed to the end of the input vector.

pushnewvecfunInterface

returns a new vector adding val to the input vector but only if val is not already in the input vector.

pushtovecfunInterface

returns a new vector with val pushed to idx of the input vector.

replacevecfunInterface

returns a new vector replacing elements in the input vector.

reversevecfunInterface

returns a new vector reversing the elements of the input. alternative to b = a[j:k:-1]

swapvecfunInterface

returns a new vector, swapping elements in the input vector.

uniquevecfunInterface

returns a new vector compring the unique elements of the input vector. a faster implementation is provided for pre-sorted inputs.

watchwatch_modSubroutine
zipvecfunInterface

returns a new vector, sequentially joining two other input vectors. for example, a=[1,2]; b=[3,4]; c=zip(a,b)=[1,3,2,4]