Rds File.Write Matrix<T> Method
Saves a matrix to an R data file.
Definition
Namespace: Numerics.NET.Data.R
Assembly: Numerics.NET.Data (in Numerics.NET.Data.dll) Version: 4.0.3
C#
Assembly: Numerics.NET.Data (in Numerics.NET.Data.dll) Version: 4.0.3
public static void WriteMatrix<T>(
Matrix<T> matrix,
string path,
bool compress = true,
bool ascii = false
)
Parameters
- matrix Matrix<T>
- The matrix to serialize.
- path String
- The path to the file to save to.
- compress Boolean (Optional)
- (Optional.) Specifies whether the output should be compressed using gzip compression. The default is true.
- ascii Boolean (Optional)
- (Optional.) Specifies whether the output should be written in ASCII format as opposed to binary. The default is false.
Type Parameters
- T