Program listing for file kernel/src/utils/SiconosAlgebra/ioMatrix.hpp#
Return to documentation for this file
1#ifndef __ioMatrix__
2#define __ioMatrix__
3
4#include "SiconosAlgebraTypeDef.hpp"
5#include "SiconosFwd.hpp"
6
7#include <string>
8
9
10
11namespace ioMatrix {
12
13 bool read(const std::string &fileName, const std::string &mode, SiconosMatrix &m);
14
15
16 bool write(const std::string &fileName, const std::string &mode, const SiconosMatrix &m,
17 const std::string &outputType = "python");
18
19
20 double compareRefFile(const SimpleMatrix &data, std::string filename, double epsilon,
21 Index index = Index(), SP::SimpleMatrix *ref = nullptr,
22 std::string mode = "ascii", bool verbose = true);
23}
24
25#endif