Question: code generaion vector vs. Vector

Hello,

Can someone explain to me why when "x:=vector(2):" is used in the code below, the file "test_file.c" is generated correctly, while when "x := Vector(2,symbol=v):" is used, there is an error:

Error, (in codegen/makestat) symbol or symbol::type or symbol:=expression expected in parameter list

-------------------------------------------------------------

with(LinearAlgebra):
with(codegen, C, makeproc):

#x := Vector(2,symbol=v):
x := vector(2):

out := x[2]^2 + x[1]:

test_file := makeproc(out,x::array(1..2)):

C(test_file, optimized, filename = "test_file.c");

-------------------------------------------------------------

Please Wait...