mitko

0 Reputation

2 Badges

12 years, 362 days

MaplePrimes Activity


These are questions asked by mitko

Hello,

Suppose that S1,S2,S3 are 3 blocks of a matrix S := Matrix(...). I would like to do

 

out := ArrayTools:-Concatenate(2,convert(S1,vector),convert(S2,vector),convert(S3,vector)):

but in the case when I have n blocks.

 

Thanks,

Dimitar

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):

Page 1 of 1