Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

mandatory Matrix package #194

Closed
Closed
@sgsokol

Description

@sgsokol

Currently, it is mandatory to load package Matrix if someone get sparse matrix in parameter or turn it back to R environment. I proposed a patch (pr#192) that was supposed to circumvent an obligation to do so but Matrix is still needed. I would like to propose another one that will finally allow to avoid an obligation to load Matrix.
With this new path, a user function can take a simple_triplet_matrix type as argument and (to go in opposite direction) use a function

List simple_triplet_matrix(const arma::SpMat<T> &)

to be able to return a sparse matrix without requiring S4 classes defined in Matrix package.

The motivation behind all of this is that a user needing only lightweight operations on sparse matrices should have an opportunity to pass by lightweight packages. Unfortunately, Matrix can require more than 1 s to load which can be prohibitive for programs intended to run in very short time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp