MatrixExtra-options {MatrixExtra}R Documentation

MatrixExtra internal options

Description

Controls some of the behaviors when calling methods from 'MatrixExtra' which differ very significantly from the same methods in 'Matrix' and which have the potential for breaking existing code in other packages.

For example, the function 'Matrix::sparse.model.matrix' might throw errors if it is called after loading 'library(MatrixExtra)' with the default options, and the default transpose behavior needs to be modified from 'MatrixExtra' to make it work again.

The 'Matrix' package has some particular choice of behaviors which can inadvertently make operations very inefficient. Particularly:

These behaviors will change at the moment one loads 'MatrixExtra' through 'library(MatrixExtra)', save for the number of threads which will also be set to the maximum when calling functions as e.g. 'MatrixExtra::<function>(<args>)'

The package provides two short-hand functions to switch all these options simultaneously:

Usage

set_new_matrix_behavior()

restore_old_matrix_behavior()

Value

No return value, called for side effects.

All options

List of options with the short-hand command to make them match with 'Matrix'.


[Package MatrixExtra version 0.1.15 Index]