Skip to content

Commit

Permalink
convert the float32 based dot function to return float32 - no need for
Browse files Browse the repository at this point in the history
float64_t inflasion
  • Loading branch information
Soeren Sonnenburg committed Apr 7, 2012
1 parent 418a6b5 commit c835442
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/shogun/mathematics/Math.cpp
Expand Up @@ -581,8 +581,7 @@ float64_t CMath::dot(const float64_t* v1, const float64_t* v2, int32_t n)
return r;
}

float64_t CMath::dot(
const float32_t* v1, const float32_t* v2, int32_t n)
float32_t CMath::dot(const float32_t* v1, const float32_t* v2, int32_t n)
{
float32_t r=0;
#ifdef HAVE_LAPACK
Expand Down
3 changes: 1 addition & 2 deletions src/shogun/mathematics/Math.h
Expand Up @@ -700,8 +700,7 @@ class CMath : public CSGObject
static float64_t dot(const float64_t* v1, const float64_t* v2, int32_t n);

/// compute dot product between v1 and v2 (blas optimized)
static float64_t dot(
const float32_t* v1, const float32_t* v2, int32_t n);
static float32_t dot(const float32_t* v1, const float32_t* v2, int32_t n);

/// compute dot product between v1 and v2 (for 64bit unsigned ints)
static inline float64_t dot(
Expand Down

0 comments on commit c835442

Please sign in to comment.