RdsFile.WriteMatrix<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: 10.6.0
C#
public static void WriteMatrix<T>(
	Matrix<T> matrix,
	string path,
	bool compress = true,
	bool ascii = false,
	RSerializationVersion version = RSerializationVersion.Version2
)

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.
version  RSerializationVersion  (Optional)
Optional. Specifies the R serialization format version to use. The default is v2.

Type Parameters

T

See Also