蟒蛇代码:
import numpy as np
from numpy import *
bits=np.array([ 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0])
print(bits)
N_bits=len(bits)
print(N_bits)
N_S=(N_bits/4)+1
delta1=zeros(((N_bits/4)+1,) , dtype=np.complex)
delta2=zeros(((N_bits/4)+1,) , dtype=np.complex)
k=1
C=zeros(((N_bits/4)+1,) , dtype=np.complex)
D=zeros(((N_bits/4)+1,) , dtype=np.complex)
C[0]=2+2j
D[0]=1+1j
请告诉我等效的 C++ 代码是什么