GemaCoreLib
The GeMA Core library
Namespaces | Functions
gmMatrixUtils.cpp File Reference

Implementation of utilitary functions for working with matrices. More...

#include "gmMatrixUtils.h"
#include "gmTrace.h"
#include <luaTable.h>
Include dependency graph for gmMatrixUtils.cpp:

Namespaces

 GmMatrixUtils
 Groups utilitary routines for working with matrices.
 

Functions

void GmMatrixUtils::print (const GmMatrix &m, const GmLogCategory &logger, GmLogLevel level, int fieldWidth, char format, int precision)
 Prints the matrix using the specified logger, level and precision fields.
 
QString GmMatrixUtils::toString (const GmMatrix &m, int fieldWidth, char format, int precision)
 Serializes the matrix to a string using the specified precision fields. Lines are surrounded by [] and values separated by ', '.
 
QString GmMatrixUtils::toColMajorString (const GmMatrix &m, int fieldWidth, char format, int precision)
 Serializes the matrix to a "linear" string, using the specified precision fields, with values ordered in column major format. Values are separated by ', '.
 
void GmMatrixUtils::fillFromLuaTable (GmMatrix &m, LuaTable &t)
 Resizes and fills the matrix m to receive the data stored in a lua table. More...
 
bool GmMatrixUtils::fillFromLuaTable (GmMatrix &m, LuaTable &t, int nlin, int ncol)
 Resizes and fills the matrix m to receive the data stored in a lua table. More...
 
bool GmMatrixUtils::updateFromLuaTable (GmMatrix &m, LuaTable &t)
 Updates the matrix m with the data stored in a lua table. The matrix size is left unchanged. More...
 

Detailed Description

Implementation of utilitary functions for working with matrices.

Author
Carlos Augusto Teixeira Mendes
Date
july, 2015