-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restored default types in user-facing functions for convenience.
Users no longer have to fill out the templated types that can't be deduced from the arguments, which makes the library a bit more user-friendly. To keep things a bit more rigorous, the definitions of the default types are stored in typedefs so that we keep them consistent throughout the library.
- Loading branch information
Showing
18 changed files
with
81 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#ifndef SINGLEPP_DEFS_HPP | ||
#define SINGLEPP_DEFS_HPP | ||
|
||
/** | ||
* @file defs.hpp | ||
* @brief Common definitions for **singlepp**. | ||
*/ | ||
|
||
#ifndef SINGLEPP_CUSTOM_PARALLEL | ||
#include "subpar/subpar.hpp" | ||
#define SINGLEPP_CUSTOM_PARALLEL subpar::parallelize | ||
#endif | ||
|
||
namespace singlepp { | ||
|
||
/** | ||
* Default type for the `Index_` template argument. | ||
* This is the type for the gene (and sample) indices, typically from the row/column indices of a `tatami::Matrix`. | ||
*/ | ||
typedef int DefaultIndex; | ||
|
||
/** | ||
* Default type for the `Label_` template argument. | ||
* This is the type for the label identifiers within each reference. | ||
*/ | ||
typedef int DefaultLabel; | ||
|
||
/** | ||
* Default type for the `RefLabel_` template argument. | ||
* This is the type for the reference identifiers during integrated classification. | ||
*/ | ||
typedef int DefaultRefLabel; | ||
|
||
/** | ||
* Default type for the `Float_` template argument. | ||
* This is the type for the correlations and classification scores. | ||
*/ | ||
typedef double DefaultFloat; | ||
|
||
/** | ||
* Default type for the `Value_` template argument. | ||
* This is the type for input data in the `tatami::Matrix`. | ||
*/ | ||
typedef double DefaultValue; | ||
|
||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters