Product Documentation
Virtuoso ADE SKILL Reference
Product Version IC23.1, November 2023

drSetElem

drSetElem(
o_vec
x_index
g_value
)
=> t / nil 

Description

Replaces the x_indexth element of the data vector o_vec with g_value. g_value must have the same data type as the data vector.

Arguments

o_vec

Data vector to which a new element g_value will be appended.

x_index

The index for which the value is replaced.

g_value

New element to be added at end of data vector o_vec.

Value Returned

t

Returns t if the element is replaced.

nil

Returns nil if there is an error.

Examples

vec = drCreateVec('double 5)
drSetElem(vec 0 10.0)

Return to top
 ⠀
X