1. A processor for performing a QR-decomposition, the processor comprising: a program memory; a program controller connected to the program memory to receive program instructions therefrom; and at least one processing unit, wherein each processing unit comprises: a CORDIC calculation block; and a distributed memory structure comprising separate memory blocks for storing respective parameter values.