FflasFfpack
Functions
fflas-ffpack/utils/Matio.h File Reference
#include <cstring>
#include <stdio.h>
#include <stdlib.h>
#include "fflas-ffpack/fflas/fflas.h"

Functions

template<class Field >
Field::Elementread_field (const Field &F, char *mat_file, int *tni, int *tnj)
 
template<class Field >
void read_field4 (const Field &F, char *mat_file, int *tni, int *tnj, typename Field::Element *&NW, typename Field::Element *&NE, typename Field::Element *&SW, typename Field::Element *&SE)
 
template<class Field >
std::ostream & write_field (const Field &F, std::ostream &c, const typename Field::Element *E, int n, int m, int id, bool mapleFormat=false)
 
template<class Field >
std::ostream & write_field (const Field &F, std::ostream &c, const FFLAS::FFLAS_UPLO uplo, const FFLAS::FFLAS_DIAG unit, const typename Field::Element *E, int n, int m, int id, bool mapleFormat=false)
 

Function Documentation

Field::Element* read_field ( const Field F,
char *  mat_file,
int *  tni,
int *  tnj 
)
void read_field4 ( const Field F,
char *  mat_file,
int *  tni,
int *  tnj,
typename Field::Element *&  NW,
typename Field::Element *&  NE,
typename Field::Element *&  SW,
typename Field::Element *&  SE 
)
std::ostream& write_field ( const Field F,
std::ostream &  c,
const typename Field::Element E,
int  n,
int  m,
int  id,
bool  mapleFormat = false 
)
std::ostream& write_field ( const Field F,
std::ostream &  c,
const FFLAS::FFLAS_UPLO  uplo,
const FFLAS::FFLAS_DIAG  unit,
const typename Field::Element E,
int  n,
int  m,
int  id,
bool  mapleFormat = false 
)
Todo:
let the user choose to convert to a non destructive format (not double but long or Integer...)