Skip to content

unfold uses depreciated Matrix function #21

@karlrohe

Description

@karlrohe

Hi @zamorarr!

Thanks so much for this code. As far as I know, there is no other code for basic manipulations of sparse tensors in R.

I've run into some problems when unfolding sparse tensors.

When, I run your tutorial code:

subs <- list(c(1,1,1), c(1,1,2))
vals <- c(10, 20)
dims <- c(2,2,2)
x <- sptensor(subs, vals, dims)
unfold(x,1)

I get a warning:

Warning message:
In Matrix::sparseMatrix(i = i, j = j, x = vals, dims = newdims, :
'giveCsparse' has been deprecated; setting 'repr = "T"' for you

Is this something you have the time to fix?
Thanks so much,
Karl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions