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

Macros

#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

Macro Definition Documentation

◆ PRECISION

#define PRECISION   16

Typedef Documentation

◆ real

typedef ergo_real real

Function Documentation

◆ read_matrix()

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

References A.

◆ read_vector()

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

References A.

Referenced by main().

◆ write_matrix()

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

References A, and PRECISION.

◆ write_vector()

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