| 98 | } |
| 99 | |
| 100 | std::vector< fs::path > enumMatrices( const std::string& root_dir ) |
| 101 | { |
| 102 | std::vector< fs::path > matxVec; |
| 103 | |
| 104 | if( !findMatrices( root_dir, "mtx", matxVec ) ) |
| 105 | throw std::runtime_error( "Could not read matrix files from disk" ); |
| 106 | |
| 107 | // Potential RVO optimization should make returning vector copy speedy |
| 108 | return matxVec; |
| 109 | } |
| 110 | |
| 111 | int main(int argc, char *argv[]) |
| 112 | { |