Skip to content

Commit

Permalink
shark_globals
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-igel committed May 21, 2024
1 parent 88dc2c5 commit 6696f73
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
6 changes: 6 additions & 0 deletions include/shark/Data/DataView.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,12 @@ class DataView
std::vector<Index> m_indices;//stores for every element of the set it's position inside the dataset
};

/**
* \ingroup shark_globals
*
* @{
*/

/// \brief creates a subset of a DataView with elements indexed by indices
///
/// \param view the view for which the subset is to be created
Expand Down
14 changes: 8 additions & 6 deletions include/shark/Data/Pgm.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@

namespace shark {

/**
* \ingroup shark_globals
*
* @{
*/

namespace detail {
void importPGM( std::string const& fileName, std::vector<unsigned char>& ppData, std::size_t& sx, std::size_t& sy )
{
Expand All @@ -71,12 +77,6 @@ void importPGM( std::string const& fileName, std::vector<unsigned char>& ppData,
SHARK_RUNTIME_CHECK(file, "Error reading file!");
}

/**
* \ingroup shark_globals
*
* @{
*/

/// \brief Writes a PGM file.
///
/// \param fileName File to write to
Expand Down Expand Up @@ -249,5 +249,7 @@ void importPGMSet(std::string const&p, Data<T> &set){
set.shape() = {info.front().second,info.front().first};
}

/** @}*/

} // end namespace shark
#endif

0 comments on commit 6696f73

Please sign in to comment.