BioDynaMo
v1.05.120-25dc9790
core
operation
reduction_op.cc
Go to the documentation of this file.
1
// -----------------------------------------------------------------------------
2
//
3
// Copyright (C) 2021 CERN & University of Surrey for the benefit of the
4
// BioDynaMo collaboration. All Rights Reserved.
5
//
6
// Licensed under the Apache License, Version 2.0 (the "License");
7
// you may not use this file except in compliance with the License.
8
//
9
// See the LICENSE file distributed with this work for details.
10
// See the NOTICE file distributed with this work for additional information
11
// regarding copyright ownership.
12
//
13
// -----------------------------------------------------------------------------
14
15
#include "
core/operation/reduction_op.h
"
16
#include "
core/container/math_array.h
"
17
#include "
core/operation/operation_registry.h
"
18
19
namespace
bdm
{
20
21
BDM_REGISTER_TEMPLATE_OP
(ReductionOp,
int
,
"ReductionOpInt"
,
kCpu
);
22
BDM_REGISTER_TEMPLATE_OP
(ReductionOp,
real_t
,
"ReductionOpDouble"
,
kCpu
);
23
BDM_REGISTER_TEMPLATE_OP
(ReductionOp,
Real3
,
"ReductionOpReal3"
,
kCpu
);
24
BDM_REGISTER_TEMPLATE_OP
(ReductionOp,
Real4
,
"ReductionOpReal4"
,
kCpu
);
25
26
}
// namespace bdm
reduction_op.h
bdm
Definition:
agent.cc:39
bdm::real_t
double real_t
Definition:
real_t.h:21
bdm::kCpu
@ kCpu
Definition:
operation.h:31
operation_registry.h
math_array.h
bdm::Real3
MathArray< real_t, 3 > Real3
Aliases for a size 3 MathArray.
Definition:
math_array.h:434
bdm::Real4
MathArray< real_t, 4 > Real4
Aliases for a size 4 MathArray.
Definition:
math_array.h:439
bdm::BDM_REGISTER_TEMPLATE_OP
BDM_REGISTER_TEMPLATE_OP(ReductionOp, int, "ReductionOpInt", kCpu)
Generated by
1.8.17