Skip to content
This repository was archived by the owner on Dec 10, 2018. It is now read-only.
This repository was archived by the owner on Dec 10, 2018. It is now read-only.

Cond with 1 or inf norm returns 1 for a matrix of all zeros #273

@btracey

Description

@btracey
package main

import (
    "fmt"
    "math"

    "github.com/gonum/matrix/mat64"
)

func main() {
    a := mat64.NewDense(1, 1, nil)
    fmt.Println(mat64.Cond(a, 1))
    fmt.Println(mat64.Cond(a, 2))
    fmt.Println(mat64.Cond(a, math.Inf(1)))
}

This may be a bizarre quirk of the lapack function, but this should not be the final output from mat64.

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