Subversion Repositories gelsvn

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
39 bj 1
/*!
2
\file LinAlgIO.h
3
\brief I/O functions for the LinAlg types
4
*/
5
#if !defined(LINALGIO_H__HAA_AGUST_2001)
6
#define LINALGIO_H__HAA_AGUST_2001
7
 
8
#include "Matrix.h"
9
#include <iostream>
10
 
11
namespace LinAlg
12
{
13
 
14
/*!
15
\name I/O from MatLab
16
Reads or writes the type to or from a m-file with a somwhat 
17
strict format. MatLab can 'load' the matrix by running the m-file
18
in question, and write to the format via the 'LinAlg.m' function.
19
 
20
Since MatLab uses double as the working percision, this is the only 
21
value of T where this interface to MatLab works. For other types, 
22
this functionality is good for loading, saving and debuging.
23
 
24
\todo write the LinAlg.m fuction.
25
\todo make a template overloading, of these functions.
26
\author Henrik Aanęs
27
\version Aug 2001
28
*/
29
//@{
30
void ToMatlab(const CMatrix& M,const std::string& VarName,const std::string& FileName="c:\\test.m",const bool append=true,const std::string& Comment = "");
31
void FromMatlab(CMatrix& M,const std::string& VarName,const std::string& FileName="c:\\test.m");
32
//@}
33
 
34
 
35
 
36
 
37
 
38
 
39
}
40
#endif // !defined(LINALGIO_H__HAA_AGUST_2001)