LAPACK  3.5.0
LAPACK: Linear Algebra PACKage
 All Classes Files Functions Variables Typedefs Macros
lapacke_example_aux.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions/Subroutines

void print_matrix_rowmajor (char *desc, lapack_int m, lapack_int n, double *mat, lapack_int ldm)
void print_matrix_colmajor (char *desc, lapack_int m, lapack_int n, double *mat, lapack_int ldm)
void print_vector (char *desc, lapack_int n, lapack_int *vec)

Function/Subroutine Documentation

void print_matrix_colmajor ( char *  desc,
lapack_int  m,
lapack_int  n,
double *  mat,
lapack_int  ldm 
)

Definition at line 17 of file lapacke_example_aux.c.

{
printf( "\n %s\n", desc );
for( i = 0; i < m; i++ ) {
for( j = 0; j < n; j++ ) printf( " %6.2f", mat[i+j*ldm] );
printf( "\n" );
}
}

Here is the caller graph for this function:

void print_matrix_rowmajor ( char *  desc,
lapack_int  m,
lapack_int  n,
double *  mat,
lapack_int  ldm 
)

Definition at line 5 of file lapacke_example_aux.c.

{
printf( "\n %s\n", desc );
for( i = 0; i < m; i++ ) {
for( j = 0; j < n; j++ ) printf( " %6.2f", mat[i*ldm+j] );
printf( "\n" );
}
}

Here is the caller graph for this function:

void print_vector ( char *  desc,
lapack_int  n,
lapack_int vec 
)

Definition at line 28 of file lapacke_example_aux.c.

{
printf( "\n %s\n", desc );
for( j = 0; j < n; j++ ) printf( " %6i", vec[j] );
printf( "\n" );
}

Here is the caller graph for this function: