MCPcopy Create free account
hub / github.com/TEA-Lab/TwoByTwo / write_matrix_to_csv

Function write_matrix_to_csv

data_util/generate_pc.cpp:110–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void write_matrix_to_csv(
111 const std::string & filename,
112 const Eigen::MatrixXd & T)
113{
114 std::ofstream file(filename.c_str());
115 if(!file.is_open()) {
116 std::cerr << "Error: Unable to open file " << filename << "\n";
117 return;
118 }
119 file << T.format(CSVFormat);
120}
121
122int main(int argc, char *argv[])
123{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected