Subversion Repositories gelsvn

Rev

Rev 39 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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