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. |
|
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. |
|
A non-copying version of the eye function.
|
|
A Double (size,size) unit matrix.
|
|
A Binary (size,size) unit matrix.
|
|
A Double Complex (size,size) unit matrix.
|
|
A Int (size,size) unit matrix.
|
|
A 2^size by 2^size Hadamard matrix.
|
|
Impulse vector.
|
|
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:
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. |
|
Linspace (works in the same way as the matlab version).
|
|
A float (rows,cols)-matrix of ones.
|
|
A float vector of ones.
|
|
A Binary (rows,cols)-matrix of ones.
|
|
A Binary vector of ones.
|
|
A Double Complex (rows,cols)-matrix of ones.
|
|
A float Complex vector of ones.
|
|
A Int (rows,cols)-matrix of ones.
|
|
A Int vector of ones.
|
|
A Double (rows,cols)-matrix of zeros.
|
|
A Double vector of zeros.
|
|
A Binary (rows,cols)-matrix of zeros.
|
|
A Binary vector of zeros.
|
|
A Double Complex (rows,cols)-matrix of zeros.
|
|
A Double Complex vector of zeros.
|
|
A Int (rows,cols)-matrix of zeros.
|
|
A Int vector of zeros.
|