utils.c File Reference

Utility functions for eigenvalue extraction tool. More...

#include "toeplitz.h"

Go to the source code of this file.

Functions

int readInput (int *n, T **t, FILE *file)
void print_vector (const char *name, T *v, int n)
void print_matrix (const char *name, T *m, int rows, int cols, int lda)


Detailed Description

Utility functions for eigenvalue extraction tool.

Author:
Leandro GraciĆ” Gil, leagragi@inf.upv.es
Date:
18/11/08

Definition in file utils.c.


Function Documentation

void print_matrix ( const char *  name,
T *  m,
int  rows,
int  cols,
int  lda 
)

Print a given matrix using standard error output.

Parameters:
name Name of the matrix (C-style string).
m Pointer to matrix data (column ordering).
rows Number of rows.
cols Number of columns.
lda Leading dimension of the matrix.

Definition at line 87 of file utils.c.

void print_vector ( const char *  name,
T *  v,
int  n 
)

Print a given vector using standard error output.

Parameters:
name Name of the vector (C-style string).
v Pointer to vector data.
n Size of the vector.

Definition at line 67 of file utils.c.

int readInput ( int *  n,
T **  t,
FILE *  file 
)

Auxiliar function for reading input data from standard input.

Parameters:
n Pointer to variable that will store input data size.
t Pointer to variable that will store input data vector.
file File where contents should be read from.
Returns:
1 if successful, 0 otherwise.

Definition at line 39 of file utils.c.


Generated on Sun Dec 14 14:21:11 2008 for Multi-GPU symmetric Toeplitz Eigenvalue Extractor by  doxygen 1.5.6