Skip to content

transpose command in hercmExplorer causes matrix to be displayed incorrectly  #25

@charlesdaniels

Description

@charlesdaniels
welcome to HeRCM Explorer. Enter "help" for help
> load matricies/bcspwr01.mtx
WARNING: matrix format not specified, assuming mtx 
from filename
done reading matrix
INFO: matrix is symmetric, bottom triangle should be only zeros
> display
INFO: matrix is symmetric, bottom triangle should be only zeros
[[ 1.  1.  0. ...,  0.  0.  1.]
 [ 0.  1.  1. ...,  0.  0.  0.]
 [ 0.  0.  1. ...,  0.  0.  0.]
 ..., 
 [ 0.  0.  0. ...,  1.  0.  0.]
 [ 0.  0.  0. ...,  0.  1.  0.]
 [ 0.  0.  0. ...,  0.  0.  1.]]
> transpose
performing matrix tranpose, please wait...
matrix transpose complete
> display
INFO: matrix is symmetric, bottom triangle should be only zeros
[[ 1.  0.  0. ...,  0.  0.  0.]
 [ 0.  2.  0. ...,  0.  0.  0.]
 [ 0.  0.  2. ...,  0.  0.  0.]
 ..., 
 [ 0.  0.  0. ...,  2.  0.  0.]
 [ 0.  0.  0. ...,  0.  2.  0.]
 [ 0.  0.  0. ...,  0.  0.  3.]]

> load matricies/sample.mtx
WARNING: matrix format not specified, assuming mtx 
from filename
done reading matrix
> display
[[ 0.  0.  0.  0.  0.]
 [ 0.  4.  0.  0.  2.]
 [ 0.  0.  1.  0.  0.]
 [ 0.  0.  0.  5.  7.]
 [ 0.  6.  3.  0.  8.]]
> transpose
performing matrix tranpose, please wait...
matrix transpose complete
> display
[[  0.   0.   0.   0.   0.]
 [  0.  10.   0.   0.   0.]
 [  0.   0.   4.   0.   0.]
 [  0.   0.   0.   5.   0.]
 [  0.   0.   0.   0.  17.]]
> 

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