示例#1
0
 /// <summary>
 /// Write a matrix in PaddedDouble file format
 /// </summary>
 /// <param name="matrix">The matrix to write</param>
 /// <param name="filename">The file to write to</param>
 /// <param name="parallelOptions">A ParallelOptions instance that configures the multithreaded behavior of this operation.</param>
 public static void WritePaddedDouble(this Matrix <string, string, double> matrix, string filename, ParallelOptions parallelOptions)
 {
     FileUtils.CreateDirectoryForFileIfNeeded(filename);
     using (TextWriter writer = File.CreateText(filename))
     {
         matrix.WritePaddedDouble(writer, parallelOptions);
     }
 }