Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

makeVector

makeVector( 
x_size 
[ g_init_val ] 
)
=> a_vectorArray

Description

Creates an array (vector) with the specified number of elements, and optionally initializes each entry.

Allocates a vector of x_size number of entries. Vector initializes each entry in the vector with g_init_val. The default value of g_init_val is the symbol unbound.

Arguments

x_size

Size of the vector to be allocated.

g_init_val

Initial value of each entry of the vector to be allocated.

Value Returned

a_vectorArray

Array of the given size.

Examples

V = makeVector( 3 0 )   
=> array[3]:1955240
V[0]                    
=> 0
V[1]                    
=> 0
V[2]                    
=> 0

Related Topics

vector

vectorp


Return to top
 ⠀
X