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

specmat.h File Reference

Definitions of special vectors and matrices. More...

#include "vector.h"
#include "matrix.h"

Include dependency graph for specmat.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  SPUC

Functions

ivec SPUC::find (const bvec &invector)
 Return a integer vector with indicies where bvec == 1.
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.
vec SPUC::hamming (int size)
 A length size hamming window.
vec SPUC::hanning (int size)
 A length size hamming window.
vec SPUC::triang (int size)
 A length size triangular window.
vec SPUC::sqrt_win (int size)
 A length size square root window (=sqrt(triang(size))).
mat SPUC::rotation_matrix (int dim, int plane1, int plane2, double angle)
 Create a rotation matrix that rotates the given plane angle radians. Note that the order of the planes are important!
void SPUC::house (const vec &x, vec &v, double &beta)
 Calcualte the Householder vector.
void SPUC::givens (double a, double b, double &c, double &s)
 Calculate the Givens rotation values.
void SPUC::givens (double a, double b, mat &m)
 Calculate the Givens rotation matrix.
mat SPUC::givens (double a, double b)
 Calculate the Givens rotation matrix.
void SPUC::givens_t (double a, double b, mat &m)
 Calculate the transposed Givens rotation matrix.
mat SPUC::givens_t (double a, double b)
 Calculate the transposed Givens rotation matrix.


Detailed Description

Definitions of special vectors and matrices.

Author:
Tony Ottosson, Tobias Ringström and Pål Frenger
1.7

2002/12/19 23:56:44


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