(Very easy) Doubt about code.

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)
Post Reply
Eli_Sabeth
Posts: 2
Joined: Sat Apr 12, 2014 7:29 am

(Very easy) Doubt about code.

Post by Eli_Sabeth » Sat Apr 12, 2014 9:21 am

Hey guys! I've just started using Magma and I don't get why the following won't work (basically, I want to evaluate a certain polynomial in all points of a vector subspace):

R:=PolynomialRing(GF(2),4);
A:=Matrix(GF(2),2,4,[1,1,1,0,0,0,0,1]);
S:=Matrix(GF(2),2,2,[1,1,1,0]);
V:=VectorSpace(GF(2),2);
B:=S*A;
p:=R.1*R.2+R.3*R.4;
for x in V do
y:=x*B;
Evaluate(p,y);
end for;

I get "Runtime error in 'Evaluate': Bad argument types", but I don't see why. Sorry and thanks a lot!

mgates3
Posts: 918
Joined: Fri Jan 06, 2012 2:13 pm

Re: (Very easy) Doubt about code.

Post by mgates3 » Mon Apr 14, 2014 11:04 am

I think you have the wrong MAGMA package. See:
http://magma.maths.usyd.edu.au/magma/

This forum is for the GPU-based linear algebra system:
http://icl.utk.edu/magma/
-mark

Post Reply