25.02
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
Variables
Typedefs
a
b
c
d
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Enumerations
a
b
c
d
e
f
g
j
l
m
n
o
p
q
r
s
t
u
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
c
d
e
f
j
l
m
o
p
r
s
v
w
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
l
m
o
r
s
t
u
v
x
z
Functions
a
b
c
d
f
g
i
m
r
s
t
v
z
Variables
Typedefs
Macros
a
c
d
e
f
h
l
m
o
s
t
u
v
x
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
FloorDiv.hpp
Go to the documentation of this file.
1
//
2
// Copyright © 2024 Arm Ltd and Contributors. All rights reserved.
3
// SPDX-License-Identifier: MIT
4
//
5
6
#pragma once
7
8
namespace
armnn
9
{
10
11
template
<
typename
T>
12
struct
floorDiv
13
{
14
typedef
T
result_type
;
15
typedef
T
first_argument_type
;
16
T
operator ()
(
const
T& inputData0,
const
T& inputData1)
const
17
{
18
double
result =
static_cast<
double
>
(inputData0)/
static_cast<
double
>
(inputData1);
19
return
static_cast<
T
>
(std::floor(result));
20
}
21
};
22
23
}
//namespace armnn
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition:
01_00_quick_start.dox:7
armnn::floorDiv
Definition:
FloorDiv.hpp:13
armnn::floorDiv::operator()
T operator()(const T &inputData0, const T &inputData1) const
Definition:
FloorDiv.hpp:16
armnn::floorDiv::first_argument_type
T first_argument_type
Definition:
FloorDiv.hpp:15
armnn::floorDiv::result_type
T result_type
Definition:
FloorDiv.hpp:14
src
backends
reference
workloads
FloorDiv.hpp
Generated on Mon Feb 17 2025 21:34:26 for Arm NN by
1.9.1