Linear

class complextorch.nn.modules.linear.CVLinear(in_features: int, out_features: int, bias: bool = False, device=None, dtype=None)

Complex-Valued Linear Layer

Follows PyTorch implementation using Gauss’ trick to improve the computation as in Complex-Valued Convolution.

forward(input: CVTensor) CVTensor

Computes multiplication 25% faster than naive method by using Gauss’ multiplication trick