<filename>CT/111_introduction_to_communication_theory/yash_vasavda/2019/projects/201801052/Encoder.py
import GenM
import numpy as np

def Encoder(Message):
	K = len(Message)

	Generator = GenM.GeneratorMatrix(K)
	CodedMessage = (np.dot(Generator, Message))%2

	return CodedMessage

a=[1,0,1,0]
z=Encoder(a)
print(z)
