Saves a matrix to an R data file.
Namespace:
Extreme.Data.R
Assembly:
Extreme.Data (in Extreme.Data.dll) Version: 3.1.0
public static void WriteMatrix<T>(
Matrix<T> matrix,
string path,
bool compress = true,
bool ascii = false
)
Public Shared Sub WriteMatrix(Of T) (
matrix As Matrix(Of T),
path As String,
Optional compress As Boolean = true,
Optional ascii As Boolean = false
)
public:
generic<typename T>
static void WriteMatrix(
Matrix<T>^ matrix,
String^ path,
bool compress = true,
bool ascii = false
)
static member WriteMatrix :
matrix : Matrix<'T> *
path : string *
?compress : bool *
?ascii : bool
(* Defaults:
let _compress = defaultArg compress true
let _ascii = defaultArg ascii false
*)
-> unit
Parameters
- matrix
- Type: Extreme.MathematicsMatrixT
The matrix to serialize. - path
- Type: SystemString
The path to the file to save to. - compress (Optional)
- Type: SystemBoolean
(Optional.) Specifies whether the
output should be compressed using gzip compression.
The default is .
- ascii (Optional)
- Type: SystemBoolean
(Optional.) Specifies whether the
output should be written in ASCII format as opposed to
binary. The default is .
Type Parameters
- T
Reference