Code covered by the BSD License  

4.0

4.0 | 1 rating Rate this file 8 Downloads (last 30 days) File Size: 2.18 KB File ID: #32840

Hadamard transform c mex implementation

by

 

C implementation of Hadamard transform

| Watch this File

File Information
Description

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.

Required Products MATLAB Compiler
MATLAB release MATLAB 7.12 (R2011a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
04 Dec 2013 Changmeng  

Contact us