Skip to content

Commit

Permalink
remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and jhyeon committed Aug 30, 2013
1 parent fb3d2db commit b0bab8c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
16 changes: 0 additions & 16 deletions src/linalg.cpp
Expand Up @@ -86,14 +86,6 @@ void DoubleVector::swap(int i, int j) {
(*this)(i) = m;
}

bool DoubleVector::testNan() const
{
for (std::size_t i = 0; i < x.size(); ++i)
if (::testNan(x[i]))
return true;
return false;
}

/*
* STANDARD INPUT / OUTPUT
*/
Expand Down Expand Up @@ -254,14 +246,6 @@ void DoubleMatrix::resize(int numberOfRows, int numberOfCols)
setRows(numberOfRows);
}

bool DoubleMatrix::testNan() const
{
for (std::size_t i = 0; i < x.size(); ++i)
if (::testNan(x[i]))
return true;
return false;
}

double DoubleMatrix::trace() const {
#ifdef ARRAY_BOUNDS_CHECKING
if (rows != cols) {
Expand Down
2 changes: 0 additions & 2 deletions src/linalg.h
Expand Up @@ -160,7 +160,6 @@ class DoubleVector : public Indexable<double, DoubleVector> {
return false;
return true;
}
bool testNan() const; ///< test for Nan elements
};


Expand Down Expand Up @@ -328,7 +327,6 @@ class DoubleMatrix : public MatIndexable<double, DoubleMatrix> {
/// resize matrix (Warning: can be slow because it internally copys a std::valarray<double>)
void resize(int, int);

bool testNan() const; ///< test for Nan elements
double trace() const;///< trace must only be performed on a square matrix
DoubleMatrix transpose() const; ///< can be any size
DoubleVector flatten() const; ///< matrix to vector, row by row
Expand Down

0 comments on commit b0bab8c

Please sign in to comment.