Skip to content

Triple Outer Product #8

@ejmeitz

Description

@ejmeitz

Hello,

I'd like to use your library to calculate the outer product of 3 sparse vectors. In numpy I can do np.outer(np.outer(u,u),u) or similarly use einsum with a dense matrix in Julia but your library is one of the few that supports high dimensional sparse tensors. How can I do this operation with SparseArrays?

I can define u = SparseArray{Float32}(undef,(5,1)) and get the sparse vector. I can do u * u' to get the first outer product but cannot get the third outer product to work.

And finally how can I contract this result with another rank 3 tensor that is not of the type SparseArray (I think this should be easy I'm just struggling to figure out the source code)?

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