Correction in configure file.

This commit is contained in:
Yashwant
2021-03-14 10:02:17 +05:30
parent bda45a82be
commit 66fca12800
8 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/sh
if [ $(uname) = "SunOS" ]
if test `uname` = "SunOS" ;
then
sed -i '1 s/$/ -ftrack-macro-expansion=0/' ./src/Makevars
sed '1 s/$/ -ftrack-macro-expansion=0/' ./src/Makevars > ./src/Makevars.tmp && cat ./src/Makevars.tmp > ./src/Makevars && rm ./src/Makevars.tmp
fi
exit 0
@@ -15,7 +15,7 @@
#include <Rcpp.h>
// To suppress Found __assert_fail, possibly from assert (C).
// To suppress Found '__assert_fail', possibly from 'assert' (C).
#define BOOST_DISABLE_ASSERTS
// Rcpp has its own stream object which cooperates more nicely with R's i/o
+1 -1
View File
@@ -1,4 +1,4 @@
/**
/**
* @file core.hpp
*
* Include all of the base components required to write mlpack methods, and the
+1 -1
View File
@@ -42,7 +42,7 @@ inline void RandomSeed(const size_t seed)
#if (!defined(BINDING_TYPE) || BINDING_TYPE != BINDING_TYPE_TEST)
randGen.seed((uint32_t) seed);
#if (BINDING_TYPE == BINDING_TYPE_R)
// To suppress Found srand, possibly from srand (C).
// To suppress Found 'srand', possibly from 'srand' (C).
(void) seed;
#else
srand((unsigned int) seed);
+9 -9
View File
@@ -129,23 +129,23 @@ class Timers
void PrintTimer(const std::string& timerName);
/**
 * Initializes a timer, available like a normal value specified on
 * the command line.  Timers are of type timeval. If a timer is started, then
* Initializes a timer, available like a normal value specified on
* the command line. Timers are of type timeval. If a timer is started, then
* stopped, then re-started, then stopped, the final timer value will be the
* length of both runs of the timer.
 *
 * @param timerName The name of the timer in question.
*
* @param timerName The name of the timer in question.
* @param threadId Id of the thread accessing the timer.
 */
*/
void StartTimer(const std::string& timerName,
const std::thread::id& threadId = std::thread::id());
/**
 * Halts the timer, and replaces its value with the delta time from its start.
  *
  * @param timerName The name of the timer in question.
* Halts the timer, and replaces its value with the delta time from its start.
*
* @param timerName The name of the timer in question.
* @param threadId Id of the thread accessing the timer.
 */
*/
void StopTimer(const std::string& timerName,
const std::thread::id& threadId = std::thread::id());
+4 -4
View File
@@ -16,11 +16,11 @@ namespace mlpack {
namespace util {
/**
 * Convert a string to lowercase letters.
 *
 * @param input The string to convert.
* Convert a string to lowercase letters.
*
* @param input The string to convert.
* @param output The string to be converted.
 */
*/
inline void ToLower(const std::string& input, std::string& output)
{
std::transform(input.begin(), input.end(), output.begin(),
@@ -31,7 +31,7 @@ namespace amf {
* }
* @endcode
*
* This is a multiplicative rule that ensures that the KullbackLeibler
* This is a multiplicative rule that ensures that the Kullback-Leibler
* divergence
*
* \f[
@@ -83,7 +83,7 @@ void RandomizedBlockKrylovSVD::Apply(const arma::mat& data,
arma::qr_econ(Q, R, K);
// Approximate eigenvalues and eigenvectors using RayleighRitz method.
// Approximate eigenvalues and eigenvectors using Rayleigh-Ritz method.
arma::svd_econ(u, s, v, Q.t() * data);
// Do economical singular value decomposition and compute only the