Code covered by the BSD License  

Highlights from
A toolbox for simple finite field operation

from A toolbox for simple finite field operation by Samuel Cheng
This is a toolbox providing simple operations (+,-,*,/,.*,./,inv) for finite field.

num=vec2num(v,z)
% Written by Samuel Cheng (Sept 13, 2011)
%
% if you need to contact me, just google :)

function num=vec2num(v,z)

num=0;
for id=length(v):-1:2
    num=num+v(id);
    num=num*z;
end
num=num+v(1);

Contact us