Use of the `info` field in the `Smith` and `AbstractHermite` types over throwing errors?
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 22/100
Línea de trabajo
Start from the Smith, RowHermite, and ColumnHermite type definitions and their show methods, then compare with LinearAlgebra.QR and LinearAlgebra.issuccess conventions. The proposal needs agreed bit meanings for info, changes wherever factorizations are constructed, and updated display behavior; it is also explicitly breaking. Done would mean documented semantics, tests for each failure bit, and a reviewed decision on the API change.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Like other LinearAlgebra.Factorization types, the Smith, RowHermite, and ColumnHermite types have an info::LinearAlgebra.BlasInt field that is zero when the factorization is a success. This could be used to convey to a user why a factorization failed without throwing an exception. This is what factorization types in the linear algebra standard library do (for instance, LinearAlgebra.QR).
I don't know the details of how this value is intended to be interpreted, but I do think that we can use this value to convey information about why a factorization failed. For this, we'd need some standards, and my idea is to set each bit of info to indicate something about the factorization failure:
- The first bit should be 1 if the Smith/Hermite normal form matrix does not take the expected form (diagonal for SNF, trapezoidal for HNF).
- The second bit should be 1 if the left unimodular factor is not unimodular.
- The third bit should be 1 if the right unimodular factor is not unimodular.
This information can be exploited by the show(::IO, ::MIME"text/plain", ::T) method to explain to a user why a factorization failed in interactive use. My issue is that users writing non-interactive code would have to manually check for successful factorizations with LinearAlgebra.issuccess. Of course, this would be a breaking change if implemented.
- Lenguaje dominante
- Julia
- Estrellas
- 6
- Forks
- 3
- Merge medio
- 2 d 2 h
- PR fusionados (30 d)
- 4
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de brainandforce/NormalForms.jl
-
tagbot-manual
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 32/100
-
Restructure factorization typesAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
brainandforce/NormalForms.jl#17 · 1 comentario ·
-
good first issue help wanted
Dificultad 4/5 3-5 días Aptitud para principiantes 22/100
brainandforce/NormalForms.jl#16 · 1 comentario ·
Todos los issues de brainandforce/NormalForms.jl
Issues similares
-
The entrypoint deletes its manifest runfiles tree at exit even under TEST_TMPDIRPosiblemente ocupada @TrapsterDK la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
periareon/rules_julia#64 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
JuliaAI/MLJTransforms.jl#108 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
CliMA/Oceananigans.jl#6603 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
JuliaGPU/GemmKernels.jl#225 ·