source/utilities_basic/file_tools/src/files_dense.h File Reference

File containing declaration of functions for reading/writing dense matrices and vectors. More...

#include "realtype.h"
#include <iostream>
#include <fstream>
#include <vector>
#include <cmath>
#include <string.h>

Go to the source code of this file.

Defines

#define PRECISION   16

Typedefs

typedef ergo_real real

Functions

int read_matrix (const char *filename, vector< real > &A, int &N, int &M, bool is_binary=false)
int read_vector (const char *filename, vector< real > &A, int &N, bool is_binary)
int write_matrix (const char *filename, const vector< real > &A, int N, int M)
int write_vector (const char *filename, const vector< real > &v)

Detailed Description

File containing declaration of functions for reading/writing dense matrices and vectors.

Author:
Anastasia Kruchinina responsible

Define Documentation

#define PRECISION   16

Typedef Documentation

typedef ergo_real real

Function Documentation

int read_matrix ( const char *  filename,
vector< real > &  A,
int &  N,
int &  M,
bool  is_binary = false 
)
int read_vector ( const char *  filename,
vector< real > &  A,
int &  N,
bool  is_binary 
)

Referenced by main().

int write_matrix ( const char *  filename,
const vector< real > &  A,
int  N,
int  M 
)

References PRECISION.

int write_vector ( const char *  filename,
const vector< real > &  v 
)

Generated on 10 Jul 2018 for ergo by  doxygen 1.6.1