Skip to content

Sparse matrix plus its adjoint is converted to a dense array #25331

@PetrKryslUCSD

Description

@PetrKryslUCSD

I ran into the following reason of a major slowdown with

Julia Version 0.7.0-DEV.3207
Commit 4d166fa76d* (2017-12-28 21:38 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-6650U CPU @ 2.20GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, skylake)
Environment:

Adding together a (very) sparse matrix with the adjoint of this sparse matrix, S+S', resulted in a dense array, with attendant memory and processing hit. Adding together a sparse matrix with its TRANSPOSE does not get converted to a dense array and remains sparse.

Is this the intended behavior? I don't see why it should be so…

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions