Commit 792a5d63be5322b12a120868749df147391bc305
1 parent
e0e01dfb
fix minor bugs
Showing
2 changed files
with
2 additions
and
3 deletions
Show diff stats
stim/math/matrix.h
@@ -408,7 +408,7 @@ public: | @@ -408,7 +408,7 @@ public: | ||
408 | 408 | ||
409 | //save the data as a CSV file | 409 | //save the data as a CSV file |
410 | void csv(std::string filename) const { | 410 | void csv(std::string filename) const { |
411 | - ofstream basisfile(filename.c_str()); | 411 | + std::ofstream basisfile(filename.c_str()); |
412 | basisfile << csv(); | 412 | basisfile << csv(); |
413 | basisfile.close(); | 413 | basisfile.close(); |
414 | } | 414 | } |
@@ -436,7 +436,7 @@ public: | @@ -436,7 +436,7 @@ public: | ||
436 | } | 436 | } |
437 | 437 | ||
438 | void raw(std::string filename) { | 438 | void raw(std::string filename) { |
439 | - ofstream out(filename, std::ios::binary); | 439 | + std::ofstream out(filename, std::ios::binary); |
440 | if (out) { | 440 | if (out) { |
441 | out.write((char*)data(), rows() * cols() * sizeof(T)); | 441 | out.write((char*)data(), rows() * cols() * sizeof(T)); |
442 | out.close(); | 442 | out.close(); |