WriteMatrix() 공개 메소드

Writes a Matrix object to the underlying stream.
public WriteMatrix ( Matrix matrix ) : void
matrix Matrix
리턴 void
예제 #1
0
파일: Matrix.cs 프로젝트: sethjuarez/numl
 /// <summary>
 /// Save matrix to file
 /// </summary>
 /// <param name="file">file to save</param>
 public void Save(string file)
 {
     using (var fs = new FileStream(file, FileMode.CreateNew))
     using (var f = new StreamWriter(fs))
     using (var w = new JsonWriter(f))
         w.WriteMatrix(this);
 }