tesseract++
0.0.1
N-dimensional tensor library for embedded systems
Loading...
Searching...
No Matches
core
include
expression_traits
fma_expr_traits.h
Go to the documentation of this file.
1
#pragma once
2
3
template
<
typename
A,
typename
B,
typename
C,
4
template
<
typename
, my_
size_t
,
typename
>
class
Op>
5
class
FmaExpr
;
6
7
template
<
typename
EXPR,
typename
ScalarT,
typename
C,
8
template
<
typename
, my_
size_t
,
typename
>
class
Op>
9
class
ScalarFmaExpr
;
10
11
namespace
expression
12
{
13
template
<
typename
A,
typename
B,
typename
C,
14
template
<
typename
, my_
size_t
,
typename
>
class
Op>
15
struct
traits
<
FmaExpr
<A, B, C, Op>>
16
{
17
static
constexpr
bool
IsPermuted =
18
traits<A>::IsPermuted
||
traits<B>::IsPermuted
||
traits<C>::IsPermuted
;
19
20
static
constexpr
bool
IsContiguous =
21
traits<A>::IsContiguous
&&
traits<B>::IsContiguous
&&
traits<C>::IsContiguous
;
22
23
static
constexpr
bool
IsPhysical =
false
;
24
};
25
26
template
<
typename
EXPR,
typename
ScalarT,
typename
C,
27
template
<
typename
, my_
size_t
,
typename
>
class
Op>
28
struct
traits
<
ScalarFmaExpr
<EXPR, ScalarT, C, Op>>
29
{
30
static
constexpr
bool
IsPermuted =
31
traits<EXPR>::IsPermuted
||
traits<C>::IsPermuted
;
32
33
static
constexpr
bool
IsContiguous =
34
traits<EXPR>::IsContiguous
&&
traits<C>::IsContiguous
;
35
36
static
constexpr
bool
IsPhysical =
false
;
37
};
38
}
// namespace expression
FmaExpr
Definition
FmaExpr.h:16
ScalarFmaExpr
Definition
FmaExpr.h:103
expression
Definition
basic_expr_traits.h:4
expression::traits
Definition
basic_expr_traits.h:6
Generated by
1.9.8