![]() |
Bachelor's degree final project
v1.0
Faculty of Mathematics, University of Barcelona
|
Implements functions that load a vector or a matrix in some file. More...
#include "load.h"
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. |
Implements functions that load a vector or a matrix in some file.
int load_matrix | ( | double **const | A, |
FILE *const | f | ||
) |
Function that loads the values of a matrix in a given file.
[in] | A | Pointer to a matrix |
[in] | f | Output file |
0 | If some error has occurred in some moment of the process |
1 | Otherwise |
int load_vector | ( | double *const | b, |
FILE *const | f | ||
) |
Function that loads the values of a vector in a given file.
[in] | b | Pointer to a vector |
[in] | f | Output file |
0 | If some error has occurred in some moment of the process |
1 | Otherwise |
int loadas_matrix | ( | double **const | A, |
char *const | name | ||
) |
Function that loads the values of a matrix in a given filename.
[in] | A | Pointer to a matrix |
[in] | name | Filename |
0 | If some error has occurred in some moment of the process |
1 | Otherwise |
References load_matrix().
int loadas_vector | ( | double *const | b, |
char *const | name | ||
) |
Function that loads the values of a vector in a given filename.
[in] | b | Pointer to a vector |
[in] | name | Filename |
0 | If some error has occurred in some moment of the process |
1 | Otherwise |
References load_vector().