You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2021/10/05 18:08:58 UTC

[sis] 01/03: Remove generation of C/C++ header files (not used anymore after removal of "sis-gdal" module). More paranoiac check for rounding errors in `normalizeColumns()`.

This is an automated email from the ASF dual-hosted git repository.

desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git

commit c9948aa3af901de361bae428d4c8248d752d51aa
Author: Martin Desruisseaux <ma...@geomatys.com>
AuthorDate: Thu Sep 30 10:45:08 2021 +0200

    Remove generation of C/C++ header files (not used anymore after removal of "sis-gdal" module).
    More paranoiac check for rounding errors in `normalizeColumns()`.
---
 .../java/org/apache/sis/referencing/operation/matrix/MatrixSIS.java     | 2 +-
 pom.xml                                                                 | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/matrix/MatrixSIS.java b/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/matrix/MatrixSIS.java
index 4efac16..d340e4b 100644
--- a/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/matrix/MatrixSIS.java
+++ b/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/matrix/MatrixSIS.java
@@ -447,7 +447,7 @@ public abstract class MatrixSIS implements Matrix, LenientComparable, Cloneable,
                     dot.setFrom(sum);
                     dot.inverseDivide(tmp);
                     set(j, i, dot);
-                    if (Math.abs(dot.doubleValue()) == 1) {
+                    if (Math.abs(dot.doubleValue()) >= 1) {
                         rowOfOne = j;
                     }
                 }
diff --git a/pom.xml b/pom.xml
index ffbb893..5eca0b3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -670,7 +670,6 @@
           <compilerArgs>
             <arg>-Xlint:all</arg>
             <arg>-Xdoclint:syntax,html,missing/protected,accessibility/protected</arg>
-            <arg>-h</arg> <arg>${project.build.sourceDirectory}/../c</arg>
           </compilerArgs>
         </configuration>
       </plugin>