intmat_to_fmm: Convert a Numeric Matrix to Matrix Market Format

View source: R/cpp11.R

intmat_to_fmmR Documentation

Convert a Numeric Matrix to Matrix Market Format

Description

This function takes a numeric matrix and converts it into a Matrix Market file.

Arguments

input

A numeric matrix to be converted.

filename

The name of the output file where the Matrix Market formatted data will be saved.

Value

A boolean indicating success or failure. Writes a MTX file to disk.

Examples

intmat <- matrix(c(1L, 2L, 3L, 4L), nrow = 2)
intmat_to_fmm(intmat, tempfile(fileext = ".mtx"))

fastMatMR documentation built on Nov. 4, 2023, 1:08 a.m.