LAPACK  3.5.0
LAPACK: Linear Algebra PACKage
 All Classes Files Functions Variables Typedefs Macros
lapacke_example_aux.c File Reference
#include <lapacke.h>
#include <stdio.h>
Include dependency graph for lapacke_example_aux.c:

Go to the source code of this file.

Functions

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 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.

17  {
18  lapack_int i, j;
19  printf( "\n %s\n", desc );
20 
21  for( i = 0; i < m; i++ ) {
22  for( j = 0; j < n; j++ ) printf( " %6.2f", mat[i+j*ldm] );
23  printf( "\n" );
24  }
25 }
set ue cd $ADTTMP cat<< EOF > tmp f Program LinearEquations Implicit none Real j
Definition: xerbla-fortran:9
#define lapack_int
Definition: lapacke.h:47

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.

5  {
6  lapack_int i, j;
7  printf( "\n %s\n", desc );
8 
9  for( i = 0; i < m; i++ ) {
10  for( j = 0; j < n; j++ ) printf( " %6.2f", mat[i*ldm+j] );
11  printf( "\n" );
12  }
13 }
set ue cd $ADTTMP cat<< EOF > tmp f Program LinearEquations Implicit none Real j
Definition: xerbla-fortran:9
#define lapack_int
Definition: lapacke.h:47

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.

28  {
29  lapack_int j;
30  printf( "\n %s\n", desc );
31  for( j = 0; j < n; j++ ) printf( " %6i", vec[j] );
32  printf( "\n" );
33 }
set ue cd $ADTTMP cat<< EOF > tmp f Program LinearEquations Implicit none Real j
Definition: xerbla-fortran:9
#define lapack_int
Definition: lapacke.h:47

Here is the caller graph for this function: