Skip to content

TA::heig errors with a 1 by 1 matrix #265

@ryanmrichard

Description

@ryanmrichard
TA::TSpArrayD temp(world, {{0.53624}});
auto [eval, evec] = TA::heig(temp);

Errors with:

test_mp2: /home/ryan/CLionProjects/MP2/build/_deps/tiledarray-src/src/TiledArray/conversions/eigen.h:428: A TiledArray::eigen_to_array(madness::World&, const typename A::trange_type&, const Eigen::MatrixBase&, bool, std::shared_ptr) [with A = TiledArray::DistArray<TiledArray::Tensor<double, Eigen::aligned_allocator >, TiledArray::SparsePolicy>; Derived = Eigen::Matrix<double, -1, -1>; typename A::trange_type = TiledArray::TiledRange; typename Policy::pmap_interface = TiledArray::Pmap]: Assertion `trange.tiles_range().rank() == 1 && "TiledArray::eigen_to_array(): The number of dimensions in " "trange must match that of the Eigen matrix."' failed.

Note that GDB shows that the eigenvalues and eigenvectors ({0.53624} and {{1}} respectively) were computed correctly. I'll see if I can fix this because it's holding up progress on my two-electron system...

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