From 84f53a4b05475156b03cbf9177ae190350fa824e Mon Sep 17 00:00:00 2001
From: Adesun <AvenSun@live.com>
Date: Sun, 05 Aug 2018 04:18:27 +0000
Subject: [PATCH] * make regex compatible with new code * fix #777 exceeds Locator.MAXTICKS * set non-interactive backend when OS is not windows * save figure as SVG

---
 src/matrix.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/matrix.c b/src/matrix.c
index ee14979..08e6109 100644
--- a/src/matrix.c
+++ b/src/matrix.c
@@ -22,8 +22,8 @@
     for(i = 0; i < truth.rows; ++i){
         top_k(guess.vals[i], n, k, indexes);
         for(j = 0; j < k; ++j){
-            int class = indexes[j];
-            if(truth.vals[i][class]){
+            int class_id = indexes[j];
+            if(truth.vals[i][class_id]){
                 ++correct;
                 break;
             }

--
Gitblit v1.10.0