Fixed some compile warnings
parent
2fc5ab3bdb
commit
83f3e14261
|
@ -30,7 +30,7 @@ void TestResult::testsStarted ()
|
|||
void TestResult::addFailure (const Failure& failure)
|
||||
{
|
||||
if (failure.lineNumber < 0) // allow for no line number
|
||||
fprintf (stdout, "%s%s%s%s%ld%s%s\n",
|
||||
fprintf (stdout, "%s%s%s%s\n",
|
||||
"Failure: \"",
|
||||
failure.message.asCharString (),
|
||||
"\" in ",
|
||||
|
|
|
@ -48,7 +48,6 @@ namespace gtsam {
|
|||
/* ************************************************************************* */
|
||||
// check NaN in the input matrix
|
||||
void CheckNaN(int m, int n, double *A, const char* msg) {
|
||||
bool hasNaN = false;
|
||||
for(int i=0; i<m; i++) {
|
||||
for(int j=0; j<n; j++)
|
||||
if (isnan(A[j*m+i]))
|
||||
|
@ -59,7 +58,6 @@ namespace gtsam {
|
|||
/* ************************************************************************* */
|
||||
// check Inf in the input matrix
|
||||
void CheckInf(int m, int n, double *A, const char* msg) {
|
||||
bool hasNaN = false;
|
||||
for(int i=0; i<m; i++) {
|
||||
for(int j=0; j<n; j++)
|
||||
if (isinf(A[j*m+i]))
|
||||
|
@ -70,7 +68,6 @@ namespace gtsam {
|
|||
/* ************************************************************************* */
|
||||
// remove NaN in the input matrix
|
||||
void RemoveNaN(int m, int n, double *A) {
|
||||
bool hasNaN = false;
|
||||
for(int i=0; i<m; i++) {
|
||||
for(int j=0; j<n; j++)
|
||||
if (isnan(A[j*m+i]))
|
||||
|
@ -81,7 +78,6 @@ namespace gtsam {
|
|||
/* ************************************************************************* */
|
||||
// check NaN in the input matrix
|
||||
bool HasNaN(int m, int n, double *A) {
|
||||
bool hasNaN = false;
|
||||
for(int i=0; i<m; i++) {
|
||||
for(int j=0; j<n; j++)
|
||||
if (isnan(A[j*m+i]))
|
||||
|
@ -93,7 +89,6 @@ namespace gtsam {
|
|||
/* ************************************************************************* */
|
||||
// check Inf in the input matrix
|
||||
bool HasInf(int m, int n, double *A) {
|
||||
bool hasNaN = false;
|
||||
for(int i=0; i<m; i++) {
|
||||
for(int j=0; j<n; j++)
|
||||
if (isinf(A[j*m+i]))
|
||||
|
|
|
@ -30,15 +30,6 @@ namespace gtsam {
|
|||
using namespace std;
|
||||
using namespace tensors;
|
||||
|
||||
static Eta3 eta;
|
||||
static Index<3, 'a'> a, _a;
|
||||
static Index<3, 'b'> b, _b;
|
||||
static Index<3, 'c'> c, _c;
|
||||
static Index<3, 'd'> d, _d;
|
||||
static Index<3, 'd'> e, _e;
|
||||
static Index<3, 'f'> f, _f;
|
||||
static Index<3, 'g'> g, _g;
|
||||
|
||||
/* ************************************************************************* */
|
||||
Point2h point2h(double x, double y, double w) {
|
||||
double data[3];
|
||||
|
|
Loading…
Reference in New Issue