mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-21 11:17:58 +02:00
moving code into aare:: namespace
This commit is contained in:
@ -14,6 +14,8 @@
|
||||
* should be able to work with streams coming from files or network
|
||||
*/
|
||||
|
||||
namespace aare {
|
||||
|
||||
class Frame {
|
||||
ssize_t m_rows;
|
||||
ssize_t m_cols;
|
||||
@ -65,3 +67,4 @@ class Frame {
|
||||
};
|
||||
|
||||
|
||||
} // namespace aare
|
@ -18,6 +18,7 @@ TODO! Add expression templates for operators
|
||||
#include <iostream>
|
||||
#include <numeric>
|
||||
|
||||
namespace aare {
|
||||
|
||||
template <typename T, ssize_t Ndim = 2> class NDArray {
|
||||
public:
|
||||
@ -427,3 +428,4 @@ NDArray<T, Ndim> load(const std::string &pathname,
|
||||
}
|
||||
|
||||
|
||||
} // namespace aare
|
@ -6,6 +6,8 @@
|
||||
#include <numeric>
|
||||
#include <vector>
|
||||
|
||||
namespace aare {
|
||||
|
||||
template <ssize_t Ndim> using Shape = std::array<ssize_t, Ndim>;
|
||||
|
||||
template <ssize_t Dim = 0, typename Strides> ssize_t element_offset(const Strides &) { return 0; }
|
||||
@ -125,3 +127,4 @@ template <typename T, ssize_t Ndim=2> class NDView {
|
||||
|
||||
template class NDView<uint16_t, 2>;
|
||||
|
||||
} // namespace aare
|
@ -9,7 +9,7 @@
|
||||
#include "aare/NDArray.hpp"
|
||||
|
||||
const int MAX_CLUSTER_SIZE = 200;
|
||||
namespace pl {
|
||||
namespace aare {
|
||||
|
||||
template <typename T> class ClusterFinder {
|
||||
public:
|
||||
@ -307,4 +307,4 @@ template <typename T> void ClusterFinder<T>::store_clusters() {
|
||||
|
||||
}
|
||||
|
||||
} // namespace pl
|
||||
} // namespace aare
|
||||
|
@ -9,6 +9,8 @@
|
||||
#include <fmt/format.h>
|
||||
#include <variant>
|
||||
|
||||
namespace aare{
|
||||
|
||||
typedef struct {
|
||||
uint64_t frameNumber;
|
||||
uint32_t expLength;
|
||||
@ -75,4 +77,6 @@ const char big_endian_char = '>';
|
||||
const char no_endian_char = '|';
|
||||
|
||||
const std::array<char, 3> endian_chars = {little_endian_char, big_endian_char, no_endian_char};
|
||||
const std::array<char, 4> numtype_chars = {'f', 'i', 'u', 'c'};
|
||||
const std::array<char, 4> numtype_chars = {'f', 'i', 'u', 'c'};
|
||||
|
||||
} // namespace aare
|
Reference in New Issue
Block a user