Function to_string(Matrix const&)

Function Documentation

inline std::string to_string(Matrix const &mat)

Converts the given matrix into a python / numpy compatible string, e.g. you can copy this string directly into the interactive python console for debugging if necessary.

Parameters

&mat – The matrix which should ne converted to a string.

Returns A

string representation of the matrix