Working with C++ for GF(2)

487 Views Asked by At

Pardon me if it is off topic.But, is there anyone who could suggest me some basics with how to get started with working with C++ for GF(2)??

I am new in C++.I am learning to working with arrays and pointers. I have no idea if there is any in built function like MATLAB. Would be so helpful if anyone could suggest me anything. Any kind of suggestion is appreciated.

Thanks in Advance

2

There are 2 best solutions below

1
On

You could define your own operators for + and * by operator overloading. That means that you define the rules of GF(2) yourself, and you can then compute with it using the + and * operators.

0
On

C++ is a general purpose programming language. It comes with a standard library, but nothing comparable to a dedicated mathematics package like Matlab.

Usually you look for external libraries that offer the desired functionality, in case you should really need unique Matlab functionality, you should investigate about interfaces between Matlab and C or C++. (Example)