|
ML Version of the Day
|
Basic stream to save in a MATLAB-compatible file MLAPI objects. More...
#include <MLAPI_MATLABStream.h>
Public Member Functions | |
| MATLABStream (const std::string &FileName, bool UseSparse=true) | |
| Opens the specified file for writing. | |
| ~MATLABStream () | |
| Finally closes the output file. | |
| MATLABStream & | operator<< (const int obj) |
| Writes on file the specified integer (on process 0 only). | |
| MATLABStream & | operator<< (const double obj) |
| Writes on file the specified double (on process 0 only). | |
| MATLABStream & | operator<< (const std::string obj) |
| Writes on file the specified std::string on process 0 only. | |
| MATLABStream & | operator<< (const Operator &obj) |
| Writes on file input Operator, one process at-a-time, using global ordering. | |
| MATLABStream & | operator<< (const MultiVector &obj) |
| Writes on file the input MultiVector, one process at-a-time. | |
| MATLABStream & | operator<< (const Space &obj) |
| Writes on file input Space, one process at-a-time. | |
| bool | GetUseSparse () const |
Returns true if the stream uses sparse MATLAB format. | |
| void | SetUseSparse (const bool UseSparse) |
| Toggles the use of sparse MATLAB formats. | |
| std::string | GetFileName () const |
| Returns the name of the output file. | |
Basic stream to save in a MATLAB-compatible file MLAPI objects.
For an example of usage, see BlackBoard.cpp
|
inline |
Opens the specified file for writing.
References MLAPI::GetMyPID(), and SetUseSparse().
Referenced by operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), and operator<<().
|
inline |
Finally closes the output file.
References MLAPI::GetMyPID().
|
inline |
Returns true if the stream uses sparse MATLAB format.
Referenced by operator<<().
|
inline |
Writes on file the specified double (on process 0 only).
References MLAPI::GetMyPID(), and MATLABStream().
|
inline |
Writes on file the specified integer (on process 0 only).
References MLAPI::GetMyPID(), and MATLABStream().
|
inline |
Writes on file the input MultiVector, one process at-a-time.
References MLAPI::Barrier(), MLAPI::BaseObject::GetLabel(), MLAPI::GetMyPID(), MLAPI::Space::GetNumGlobalElements(), MLAPI::Space::GetNumMyElements(), MLAPI::GetNumProcs(), MLAPI::MultiVector::GetNumVectors(), MLAPI::MultiVector::GetVectorSpace(), and MATLABStream().
|
inline |
Writes on file input Operator, one process at-a-time, using global ordering.
References MLAPI::Barrier(), MLAPI::Operator::GetDomainSpace(), MLAPI::Operator::GetGCID(), MLAPI::Operator::GetGRID(), MLAPI::BaseObject::GetLabel(), MLAPI::Operator::GetML_Operator(), MLAPI::GetMyPID(), MLAPI::Space::GetNumGlobalElements(), MLAPI::GetNumProcs(), MLAPI::Operator::GetRangeSpace(), GetUseSparse(), and MATLABStream().
|
inline |
Writes on file input Space, one process at-a-time.
References MLAPI::Barrier(), MLAPI::BaseObject::GetLabel(), MLAPI::GetMyPID(), MLAPI::Space::GetNumGlobalElements(), MLAPI::Space::GetNumMyElements(), MLAPI::GetNumProcs(), and MATLABStream().
|
inline |
Writes on file the specified std::string on process 0 only.
References MLAPI::GetMyPID(), and MATLABStream().
|
inline |
Toggles the use of sparse MATLAB formats.
Referenced by MATLABStream().