The multiplication c*x is not defined (notice that x is not a vector). Correspondingly, zz=c*x needs to be expressed explicitly - for example, zz=sum( cc*xx for cc,xx in zip(c,x) ).
The multiplication c*x is not defined (notice that x is not a vector). Correspondingly, zz=c*x needs to be expressed explicitly - for example, zz=sum( cc*xx for cc,xx in zip(c,x) ).
Also, by the same reason the result of A*x is not what is expected. It's also needs to be explicitly expressed - for example, B = [ sum( aa*xx for aa,xx in zip(row,x) ) for row in A.rows() ]
The multiplication c*x is not defined (notice that x is not a vector). Correspondingly, zz=c*x needs to be expressed explicitly - for example, zz=sum( cc*xx for cc,xx in zip(c,x) ).
Also, by the same reason the result of A*x is not what is expected. It's So, B=A*x also needs to be explicitly expressed - for example, B = [ sum( aa*xx for aa,xx in zip(row,x) ) for row in A.rows() ]