Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bits2zbytes committed Mar 19, 2020
1 parent 29902d2 commit acf949d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
16 changes: 0 additions & 16 deletions adaboost/core/data_structures.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,6 @@ namespace adaboost
void set(unsigned int index,
data_type_vector value);

/*
* Used for filling the vector with a given value.
*
* @param value The value with which the vector is
* to be populated.
*/
void fill(data_type_vector value);

/*
* Used for obtaining the size of the vector.
*/
Expand Down Expand Up @@ -158,14 +150,6 @@ namespace adaboost
unsigned int y,
data_type_matrix value);

/*
* Used for filling the matrix with a given value.
*
* @param value The value with which the matrix is
* to be populated.
*/
void fill(data_type_matrix value);

/*
* Used for obtaining number of rows in the vector.
*/
Expand Down
18 changes: 18 additions & 0 deletions adaboost/core/operations.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,24 @@ namespace adaboost
{
namespace core
{
/* @overload
* Used for filling the vector with a given value.
*
* @param value The value with which the vector is
* to be populated.
*/
template <class data_type_vector>
void fill(data_type_vector value);

/* @overload
* Used for filling the matrix with a given value.
*
* @param value The value with which the matrix is
* to be populated.
*/
template <class data_type_matrix>
void fill(data_type_matrix value);

/*
* This function computes the sum of
* elements of the given vector and the
Expand Down
6 changes: 2 additions & 4 deletions adaboost/core/operations_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ namespace adaboost
}

template <class data_type_vector>
void Vector<data_type_vector>::
fill(data_type_vector value)
void fill(data_type_vector value);
{
for(unsigned int i = 0; i < this->size; i++)
{
Expand All @@ -59,8 +58,7 @@ namespace adaboost


template <class data_type_matrix>
void Matrix<data_type_matrix>::
fill(data_type_matrix value)
void fill(data_type_matrix value);
{
for(unsigned int i = 0; i < this->rows; i++)
{
Expand Down

0 comments on commit acf949d

Please sign in to comment.