C++ helper functions for converting between SPADE (SPL v1) matrices (based on boost:ublas::matrix) and SPL nested lists. More...
Functions |
|
template<class T , class L , class A > | |
void | convertFromNestedListToUblasMatrix (boost::numeric::ublas::matrix< T, L, A > &to, SPL::list< SPL::list< T > > const &from) |
template<class T , class L , class A > | |
void | convertToNestedListFromUblasMatrix (SPL::list< SPL::list< T > > &to, boost::numeric::ublas::matrix< T, L, A > const &from) |
C++ helper functions for converting between SPADE (SPL v1) matrices (based on boost:ublas::matrix) and SPL nested lists.
void SPL::Functions::Math::Compat::convertFromNestedListToUblasMatrix | ( | boost::numeric::ublas::matrix< T, L, A > & | to, |
SPL::list< SPL::list< T > > const & | from | ||
) |
Convert from a nested SPL list to a ublas matrix. The nested list must represent a valid matrix: All sub-lists must have the same length.
to | ublas matrix to convert to |
from | nested list to convert from |
SPLRuntimeTypeMismatchException | if the list does not represent a valid matrix |
void SPL::Functions::Math::Compat::convertToNestedListFromUblasMatrix | ( | SPL::list< SPL::list< T > > & | to, |
boost::numeric::ublas::matrix< T, L, A > const & | from | ||
) |
Convert from a nested SPL list to a ublas matrix
to | nested list to convert to |
from | ublas matrix to convert from |