Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Special Matricies


Functions

vec SPUC::ones (int size)
 A float vector of ones.
bvec SPUC::ones_b (int size)
 A Binary vector of ones.
ivec SPUC::ones_i (int size)
 A Int vector of ones.
cvec SPUC::ones_c (int size)
 A float Complex vector of ones.
mat SPUC::ones (int rows, int cols)
 A float (rows,cols)-matrix of ones.
bmat SPUC::ones_b (int rows, int cols)
 A Binary (rows,cols)-matrix of ones.
imat SPUC::ones_i (int rows, int cols)
 A Int (rows,cols)-matrix of ones.
cmat SPUC::ones_c (int rows, int cols)
 A Double Complex (rows,cols)-matrix of ones.
vec SPUC::zeros (int size)
 A Double vector of zeros.
bvec SPUC::zeros_b (int size)
 A Binary vector of zeros.
ivec SPUC::zeros_i (int size)
 A Int vector of zeros.
cvec SPUC::zeros_c (int size)
 A Double Complex vector of zeros.
mat SPUC::zeros (int rows, int cols)
 A Double (rows,cols)-matrix of zeros.
bmat SPUC::zeros_b (int rows, int cols)
 A Binary (rows,cols)-matrix of zeros.
imat SPUC::zeros_i (int rows, int cols)
 A Int (rows,cols)-matrix of zeros.
cmat SPUC::zeros_c (int rows, int cols)
 A Double Complex (rows,cols)-matrix of zeros.
mat SPUC::eye (int size)
 A Double (size,size) unit matrix.
bmat SPUC::eye_b (int size)
 A Binary (size,size) unit matrix.
imat SPUC::eye_i (int size)
 A Int (size,size) unit matrix.
cmat SPUC::eye_c (int size)
 A Double Complex (size,size) unit matrix.
template<class T>
void SPUC::eye (int size, Mat< T > &m)
 A non-copying version of the eye function.
vec SPUC::impulse (int size)
 Impulse vector.
vec SPUC::linspace (double from, double to, int length=100)
 Linspace (works in the same way as the matlab version).
imat SPUC::hadamard (int size)
 A 2^size by 2^size Hadamard matrix.
imat SPUC::jacobsthal (int p)
 Jacobsthal matrix.
imat SPUC::conference (int n)
 Conference matrix.

Function Documentation

imat SPUC::conference int  n  ) 
 

Conference matrix.

Constructs an n by n matrix C, where n=p^m+1=2 (mod 4) and p is a odd prime (not checked). This code only work with m=1, that is n=p+1 and p odd prime. The valid sizes of n is then n=6, 14, 18, 30, 38, ... (and not 10, 26, ...). C has the property that C*C'=(n-1)I, that is it has orthogonal rows and columns in the same way as Hadamard matricies. However, one element in each row (on the diagonal) is zeros. The others are {-1,+1}.

For more details see pp. 55-58 in MacWilliams & Sloane "The theory of error correcting codes", North-Holland, 1977.

template<class T>
void SPUC::eye int  size,
Mat< T > &  m
 

A non-copying version of the eye function.

mat SPUC::eye int  size  ) 
 

A Double (size,size) unit matrix.

bmat SPUC::eye_b int  size  ) 
 

A Binary (size,size) unit matrix.

cmat SPUC::eye_c int  size  ) 
 

A Double Complex (size,size) unit matrix.

imat SPUC::eye_i int  size  ) 
 

A Int (size,size) unit matrix.

imat SPUC::hadamard int  size  ) 
 

A 2^size by 2^size Hadamard matrix.

vec SPUC::impulse int  size  ) 
 

Impulse vector.

imat SPUC::jacobsthal int  p  ) 
 

Jacobsthal matrix.

Constructs an p by p matrix Q where p is a prime (not checked). The elements in Q {qij} is given by qij=X(j-i), where X(x) is the Legendre symbol given as:

  • X(x)=0 if x is a multiple of p,
  • X(x)=1 if x is a quadratic residue modulo p,
  • X(x)=-1 if x is a quadratic nonresidue modulo p.

See Wicker "Error Control Systems for digital communication and storage", p. 134 for more information on these topics. Do not check that p is a prime.

vec SPUC::linspace double  from,
double  to,
int  points
 

Linspace (works in the same way as the matlab version).

mat SPUC::ones int  rows,
int  cols
 

A float (rows,cols)-matrix of ones.

vec SPUC::ones int  size  ) 
 

A float vector of ones.

bmat SPUC::ones_b int  rows,
int  cols
 

A Binary (rows,cols)-matrix of ones.

bvec SPUC::ones_b int  size  ) 
 

A Binary vector of ones.

cmat SPUC::ones_c int  rows,
int  cols
 

A Double Complex (rows,cols)-matrix of ones.

cvec SPUC::ones_c int  size  ) 
 

A float Complex vector of ones.

imat SPUC::ones_i int  rows,
int  cols
 

A Int (rows,cols)-matrix of ones.

ivec SPUC::ones_i int  size  ) 
 

A Int vector of ones.

mat SPUC::zeros int  rows,
int  cols
 

A Double (rows,cols)-matrix of zeros.

vec SPUC::zeros int  size  ) 
 

A Double vector of zeros.

bmat SPUC::zeros_b int  rows,
int  cols
 

A Binary (rows,cols)-matrix of zeros.

bvec SPUC::zeros_b int  size  ) 
 

A Binary vector of zeros.

cmat SPUC::zeros_c int  rows,
int  cols
 

A Double Complex (rows,cols)-matrix of zeros.

cvec SPUC::zeros_c int  size  ) 
 

A Double Complex vector of zeros.

imat SPUC::zeros_i int  rows,
int  cols
 

A Int (rows,cols)-matrix of zeros.

ivec SPUC::zeros_i int  size  ) 
 

A Int vector of zeros.


Generated on Fri Sep 16 11:06:48 2005 for spuc by  doxygen 1.4.4