Skip to content

Unexpect output with dplasma_dlange for all-zero matrix #146

@Qiao-Paper

Description

@Qiao-Paper

Describe the bug

For all-zero matrix, its dplasmaFrobeniusNorm calculated by dplasma_dlange is -nan.

To Reproduce

Steps to reproduce the behavior:

  1. Initialize a all-zero matrix
  2. Calculate its FrobeniusNorm: dplasma_dlange( parsec, dplasmaFrobeniusNorm, A);

Expected behavior

The result should be 0 instead of -nan.

Bug Location

When a new tile is considered during the Frobenius norm calculation, its norm is compared with scale and divided (the smaller value divided by the larger one). In this way, 0/0 division occurs when all the tile is 0.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions