Bachelor's degree final project  v1.0
Faculty of Mathematics, University of Barcelona
Functions
src/load.c File Reference

Implements functions that load a vector or a matrix in some file. More...

#include "load.h"
+ Include dependency graph for load.c:

Functions

int load_vector (double *const b, FILE *const f)
 Function that loads the values of a vector in a given file.
int loadas_vector (double *const b, char *const name)
 Function that loads the values of a vector in a given filename.
int load_matrix (double **const A, FILE *const f)
 Function that loads the values of a matrix in a given file.
int loadas_matrix (double **const A, char *const name)
 Function that loads the values of a matrix in a given filename.

Detailed Description

Implements functions that load a vector or a matrix in some file.

Author:
Joan Gimeno
Date:
22/05/2014 (start)
Version:
1.0

Function Documentation

int load_matrix ( double **const  A,
FILE *const  f 
)

Function that loads the values of a matrix in a given file.

Parameters:
[in]APointer to a matrix
[in]fOutput file
Return values:
0If some error has occurred in some moment of the process
1Otherwise
Precondition:
The pointers are not NULL
Postcondition:
The file with name has been created or modified with the result

+ Here is the caller graph for this function:

int load_vector ( double *const  b,
FILE *const  f 
)

Function that loads the values of a vector in a given file.

Parameters:
[in]bPointer to a vector
[in]fOutput file
Return values:
0If some error has occurred in some moment of the process
1Otherwise
Precondition:
The pointers are not NULL
Postcondition:
The file with name has been created or modified with the result

+ Here is the caller graph for this function:

int loadas_matrix ( double **const  A,
char *const  name 
)

Function that loads the values of a matrix in a given filename.

Parameters:
[in]APointer to a matrix
[in]nameFilename
Return values:
0If some error has occurred in some moment of the process
1Otherwise
Precondition:
The pointers are not NULL
Postcondition:
The file with name has been created or modified with the result

References load_matrix().

+ Here is the call graph for this function:

int loadas_vector ( double *const  b,
char *const  name 
)

Function that loads the values of a vector in a given filename.

Parameters:
[in]bPointer to a vector
[in]nameFilename
Return values:
0If some error has occurred in some moment of the process
1Otherwise
Precondition:
The pointers are not NULL
Postcondition:
The file with name has been created or modified with the result

References load_vector().

+ Here is the call graph for this function: