Browse Source

Data: fix MatrixMarketWriter.WriteVector to use File.OpenWrite #335

pull/336/merge
Christoph Ruegg 11 years ago
parent
commit
be75d314a5
  1. 2
      src/Data/Text/MatrixMarketWriter.cs

2
src/Data/Text/MatrixMarketWriter.cs

@ -77,7 +77,7 @@ namespace MathNet.Numerics.Data.Text
public static void WriteVector<T>(string filePath, Vector<T> vector, Compression compression = Compression.Uncompressed) where T : struct, IEquatable<T>, IFormattable
{
using (var stream = File.OpenRead(filePath))
using (var stream = File.OpenWrite(filePath))
{
switch (compression)
{

Loading…
Cancel
Save