Skip to content

Commit 7374678

Browse files
committed
🔨 Corrected typos and reconfigured
1 parent dee1aac commit 7374678

6 files changed

+20
-23
lines changed

cleanup

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
rm -f config.*
44
rm -f src/Makevars
5-
rm -rf autom4te.cache
5+
rm -rf autom4te.cache

configure

+5-5
Original file line numberDiff line numberDiff line change
@@ -2055,7 +2055,7 @@ printf "%s\n" "$as_me: Configuring {SLmetrics} ${PACKAGE_VERSION}" >&6;}
20552055
## this is where R is stored
20562056
## often a standard location.
20572057
##
2058-
## NOTE: It may, or may not, be a a good idea
2058+
## NOTE: It may, or may not, be a good idea
20592059
## to search for it in alternative locations
20602060
## for users using containers, dockers and other
20612061
## stuff that changes essential stuff
@@ -5522,11 +5522,11 @@ CXXSTD=`"${R_HOME}/bin/R" CMD config CXX${STD_VER}STD`
55225522
## on the compiler.
55235523
##
55245524
## This macro returns a $OPENMP_CFLAGS or $OPENMP_CXXFLAGS
5525-
## which us appended at step 6.
5525+
## which is appended at step 6.
55265526
##
55275527
## NOTE: As per March 22, 2025 this have not been
55285528
## tested on clang, and according to the macro
5529-
## it doesnt test on clang or llvm. So it is not clear
5529+
## it doesn't test on clang or LLVM. So it is not clear
55305530
## what will happen when it fails.
55315531
# ===========================================================================
55325532
# https://www.gnu.org/software/autoconf-archive/ax_openmp.html
@@ -5679,7 +5679,7 @@ fi
56795679
## 5) Check for zlib
56805680
## availability.
56815681
##
5682-
## At this stage it is unkown why I need
5682+
## At this stage it is unknown why I need
56835683
## it. But its basically there in every single
56845684
## tutorial, or documentation. So it must be
56855685
## important.
@@ -5766,7 +5766,7 @@ fi
57665766
57675767
57685768
## 6.3) PKG_LIBS
5769-
## This is wher all the
5769+
## This is where all the
57705770
## relevant extra libraries are added
57715771
PKG_LIBS="${BLAS_LIBS} ${LAPACK_LIBS} ${FLIBS}"
57725772

configure.ac

+5-8
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ AC_MSG_NOTICE([Configuring {SLmetrics} ${PACKAGE_VERSION}])
1313
## this is where R is stored
1414
## often a standard location.
1515
##
16-
## NOTE: It may, or may not, be a a good idea
16+
## NOTE: It may, or may not, be a good idea
1717
## to search for it in alternative locations
1818
## for users using containers, dockers and other
1919
## stuff that changes essential stuff
@@ -67,11 +67,11 @@ CXXSTD=`"${R_HOME}/bin/R" CMD config CXX${STD_VER}STD`
6767
## on the compiler.
6868
##
6969
## This macro returns a $OPENMP_CFLAGS or $OPENMP_CXXFLAGS
70-
## which us appended at step 6.
70+
## which is appended at step 6.
7171
##
7272
## NOTE: As per March 22, 2025 this have not been
7373
## tested on clang, and according to the macro
74-
## it doesnt test on clang or llvm. So it is not clear
74+
## it doesn't test on clang or LLVM. So it is not clear
7575
## what will happen when it fails.
7676
m4_include([m4/ax_openmp.m4])
7777
AX_OPENMP([
@@ -83,7 +83,7 @@ AX_OPENMP([
8383
## 5) Check for zlib
8484
## availability.
8585
##
86-
## At this stage it is unkown why I need
86+
## At this stage it is unknown why I need
8787
## it. But its basically there in every single
8888
## tutorial, or documentation. So it must be
8989
## important.
@@ -111,7 +111,7 @@ fi
111111
AC_SUBST([PKG_CXXFLAGS])
112112

113113
## 6.3) PKG_LIBS
114-
## This is wher all the
114+
## This is where all the
115115
## relevant extra libraries are added
116116
PKG_LIBS="${BLAS_LIBS} ${LAPACK_LIBS} ${FLIBS}"
117117
AC_SUBST([PKG_LIBS])
@@ -120,6 +120,3 @@ AC_SUBST([PKG_LIBS])
120120
## file and celebrate
121121
AC_CONFIG_FILES([src/Makevars])
122122
AC_OUTPUT
123-
124-
## 8) End of program
125-
## (For the LF/CRF warnings)

configure.win

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## C++23, then C++20, then C++17.
88
## If none is available, installation is aborted.
99

10-
## 1) Create a small program
10+
## 0) Create a small program
1111
## to test for CXXSTD and
1212
## store as environment
1313
## variable
@@ -74,7 +74,7 @@ if test "$CPP_SUPPORTED" = "no" && test -n "$STD_C20"; then
7474
fi
7575
fi
7676

77-
## 3.2) C++17
77+
## 3.3) C++17
7878
if test "$CPP_SUPPORTED" = "no" && test -n "$STD_C17"; then
7979
value=`test_cpp_standard "$STD_C17"`
8080
if test $? -eq 0 && test "$value" -ge 201703; then
@@ -84,7 +84,7 @@ if test "$CPP_SUPPORTED" = "no" && test -n "$STD_C17"; then
8484
fi
8585
fi
8686

87-
## 3.3) Abort installation if no
87+
## 3.4) Abort installation if no
8888
## CXXSTD17 compiler is available.
8989
## or echo the CXXSTD
9090
if test "$CPP_SUPPORTED" = "no"; then

src/classification_BalancedAccuracy.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Rcpp::NumericVector balanced_accuracy(
1414
const bool& adjust = false,
1515
bool na_rm = true) {
1616

17-
__balanced_accuracy__ cook(adjust, na_rm);
17+
_balanced_accuracy_ cook(adjust, na_rm);
1818
return recipe(cook, actual, predicted);
1919
}
2020

@@ -29,7 +29,7 @@ Rcpp::NumericVector weighted_balanced_accuracy(
2929
const bool& adjust = false,
3030
bool na_rm = true) {
3131

32-
__balanced_accuracy__ cook(adjust, na_rm);
32+
_balanced_accuracy_ cook(adjust, na_rm);
3333
return recipe(cook, actual, predicted, w);
3434
}
3535

@@ -38,11 +38,11 @@ Rcpp::NumericVector weighted_balanced_accuracy(
3838
//' @export
3939
// [[Rcpp::export(baccuracy.cmatrix)]]
4040
Rcpp::NumericVector cmatrix_balanced_accuracy(
41-
const NumericMatrix& x,
41+
const Rcpp::NumericMatrix& x,
4242
const bool& adjust = false,
4343
bool na_rm = true) {
4444

45-
__balanced_accuracy__ cook(adjust, na_rm);
45+
_balanced_accuracy_ cook(adjust, na_rm);
4646
return recipe(cook, x);
4747

4848
}

src/classification_BalancedAccuracy.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
#define EIGEN_USE_MKL_ALL
88
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
99

10-
class __balanced_accuracy__ : public classification {
10+
class _balanced_accuracy_ : public classification {
1111

1212
private:
1313
bool adjust;
1414
bool na_rm;
1515

1616
public:
1717
// Constructor
18-
__balanced_accuracy__(bool adjust, bool na_rm)
18+
_balanced_accuracy_(bool adjust, bool na_rm)
1919
: adjust(adjust), na_rm(na_rm) {}
2020

2121
Rcpp::NumericVector compute(const Eigen::MatrixXd& matrix) const override {

0 commit comments

Comments
 (0)