Hadamard transform c mex implementation

C implementation of Hadamard transform

You are now following this Submission

C implementation of Hadamard transform

Usage: y = hadamardc(x)
x must be a REAL VALUED COLUMN VECTOR or MATRIX
m = size(x,1) must be a POWER OF TWO

In terms of default matlab functions, this is functionally equivalent to hadamard(size(x,1))*x or ifwht(x,[],'hadamard'), but faster.

Notes:
1) This implementation uses exactly m*log2(m) additions/subtractions.
2) This is symmetric and orthogonal. To invert, apply again and divide by vector length.

Cite As

Peter Stobbe (2026). Hadamard transform c mex implementation (https://www.mathworks.com/matlabcentral/fileexchange/32840-hadamard-transform-c-mex-implementation), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0