Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes https://trac.macports.org/ticket/56480 Fixes https://trac.macports.org/ticket/51707 See #1827 for all of the initial work on this issue
- Loading branch information
1 parent
5a7a91f
commit aec1479
Showing
93 changed files
with
1,569 additions
and
699 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- src/configure.orig 2009-06-07 04:26:53.000000000 -0700 | ||
+++ src/configure 2018-05-21 05:24:47.000000000 -0700 | ||
@@ -2867,7 +2867,7 @@ | ||
#if test -z "$mpath" || test -z "$opath" || test -z "$xpath" || test -z "$altmpath" || test -z "$altopath" || test -z "$ver" ; then | ||
if test -z "$mpath" || test -z "$opath" || test -z "$xpath" || test -z "$ver" ; then | ||
cat > conftest.cc <<EOF | ||
-#include <octave/config.h> | ||
+#include <octave/octave-config.h> | ||
#include <octave/version.h> | ||
#include <octave/defaults.h> | ||
|
||
@@ -2956,7 +2956,7 @@ | ||
{ $as_echo "$as_me:$LINENO: checking for F77_FUNC" >&5 | ||
$as_echo_n "checking for F77_FUNC... " >&6; } | ||
cat > conftest.cc << EOF | ||
-#include <octave/config.h> | ||
+#include <octave/octave-config.h> | ||
int F77_FUNC (hello, HELLO) (const int &n); | ||
EOF | ||
ac_try="$MKOCTFILE -c conftest.cc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
--- src/fl_compose.cc.orig 2011-02-06 13:09:03.000000000 -0600 | ||
+++ src/fl_compose.cc 2014-11-26 15:09:20.000000000 -0600 | ||
@@ -20,7 +20,8 @@ | ||
|
||
--- src/fl_compose.cc.orig 2011-02-06 12:09:03.000000000 -0700 | ||
+++ src/fl_compose.cc 2018-05-21 14:23:42.000000000 -0700 | ||
@@ -21,6 +21,7 @@ | ||
#include <octave/oct.h> | ||
#include <octave/parse.h> | ||
-#include <pthread.h> | ||
+#include <pthread.h> | ||
#include <pthread.h> | ||
+#include <unistd.h> | ||
|
||
#define HELP \ | ||
"-*- texinfo -*-\n\ | ||
@@ -465,7 +466,7 @@ | ||
float tnorm_val; | ||
|
||
// Initialize the result sparse matrix | ||
- sparseC = SparseMatrix((int)colsB, (int)rowsA, (int)(colsB*rowsA)); | ||
+ sparseC = SparseMatrix((octave_idx_type)colsB, (octave_idx_type)rowsA, (octave_idx_type)(colsB*rowsA)); | ||
|
||
// Initialize the number of nonzero elements in the sparse matrix c | ||
int nel = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
math/octave-fuzzy-logic-toolkit/files/patch-anonymous.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- inst/defuzz.m | ||
+++ inst/defuzz.m | ||
@@ -1,4 +1,4 @@ | ||
-## Copyright (C) 2011-2014 L. Markowsky <lmarkov@users.sourceforge.net> | ||
+## Copyright (C) 2011-2018 L. Markowsky <lmarkov@users.sourceforge.net> | ||
## | ||
## This file is part of the fuzzy-logic-toolkit. | ||
## | ||
@@ -162,7 +162,16 @@ | ||
function crisp_x = mom (x, y) | ||
|
||
max_y = max (y); | ||
- y_val = @(y_val) if (y_val == max_y) 1 else 0 endif; | ||
+ | ||
+ function y_val = calc_yval(y_val) | ||
+ if (y_val == max_y) | ||
+ y_val = 1; | ||
+ else | ||
+ y_val = 0; | ||
+ endif | ||
+ endfunction | ||
+ | ||
+ y_val = @(y_val) calc_yval(y_val); | ||
max_y_locations = arrayfun (y_val, y); | ||
crisp_x = sum (x .* max_y_locations) / sum (max_y_locations); | ||
|
||
@@ -185,7 +194,16 @@ | ||
function crisp_x = som (x, y) | ||
|
||
max_y = max (y); | ||
- y_val = @(y_val) if (y_val == max_y) 1 else (NaN) endif; | ||
+ | ||
+ function y_val = calc_yval(y_val) | ||
+ if (y_val == max_y) | ||
+ y_val = 1; | ||
+ else | ||
+ y_val = (NaN); | ||
+ endif | ||
+ endfunction | ||
+ | ||
+ y_val = @(y_val) calc_yval(y_val); | ||
max_y_locations = arrayfun (y_val, y); | ||
crisp_x = min (x .* max_y_locations); | ||
|
||
@@ -207,7 +225,16 @@ | ||
function crisp_x = lom (x, y) | ||
|
||
max_y = max (y); | ||
- y_val = @(y_val) if (y_val == max_y) 1 else (NaN) endif; | ||
+ | ||
+ function y_val = calc_yval(y_val) | ||
+ if (y_val == max_y) | ||
+ y_val = 1; | ||
+ else | ||
+ y_val = (NaN); | ||
+ endif | ||
+ endfunction | ||
+ | ||
+ y_val = @(y_val) calc_yval(y_val); | ||
max_y_locations = arrayfun (y_val, y); | ||
crisp_x = max (x .* max_y_locations); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.