AGXDynamics
2.31.1.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Inv.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2021. Algoryx Simulation AB.
3
4
All AGX source code, intellectual property, documentation, sample code,
5
tutorials, scene files and technical white papers, are copyrighted, proprietary
6
and confidential material of Algoryx Simulation AB. You may not download, read,
7
store, distribute, publish, copy or otherwise disseminate, use or expose this
8
material unless having a written signed agreement with Algoryx Simulation AB, or
9
having been advised so by Algoryx Simulation AB for a time limited evaluation,
10
or having purchased a valid commercial license from Algoryx Simulation AB.
11
12
Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13
from using this software, unless otherwise stated in written agreements with
14
Algoryx Simulation AB.
15
*/
16
17
19
// AUTOMATICALLY GENERATED, DO NOT EDIT! (except inline functions) //
21
22
#ifndef AGXFN_MATH_INV_H
23
#define AGXFN_MATH_INV_H
24
25
#include <
agxData/Array.h
>
26
#include <
agxData/EntityPtr.h
>
27
#include <
agx/Integer.h
>
28
#include <
agx/Real.h
>
29
#include <
agx/Math.h
>
30
#include <
agx/Job.h
>
31
#include <
agx/Matrix4x4.h
>
32
#include <
agx/AffineMatrix4x4.h
>
33
34
35
namespace
agx {
namespace
Math { } }
36
37
namespace
agxFn
38
{
39
namespace
Math
40
{
48
template
<
typename
AutoT1,
typename
AutoT2>
49
AGX_FORCE_INLINE
void
Inv
50
(
51
/* Parameter list automatically generated, do not edit */
52
AutoT1& result,
53
const
AutoT2& arg
54
)
55
{
56
result =
agx::inverse
(arg);
57
}
58
60
template
<
typename
AutoT1,
typename
AutoT2>
61
AGX_FORCE_INLINE
AutoT1
Inv
62
(
63
const
AutoT2& arg
64
)
65
{
66
AutoT1 result;
67
agxFn::Math::Inv
(result, arg);
68
return
result;
69
}
70
71
72
81
template
<
typename
AutoT1,
typename
AutoT2>
82
AGX_FORCE_INLINE
void
Inv
83
(
84
/* Parameter list automatically generated, do not edit */
85
const
agx::RangeJob
& job,
86
agxData::Array< AutoT1 >
& result,
87
const
agxData::Array< AutoT2 >
& arg
88
)
89
{
90
for
(
size_t
i = job.
range
().
begin
(); i < job.
range
().
end
(); ++i)
91
{
92
agxFn::Math::Inv
(result[i], arg[i]);
93
}
94
}
95
96
105
template
<
typename
AutoT1,
typename
AutoT2>
106
AGX_FORCE_INLINE
void
Inv
107
(
108
/* Parameter list automatically generated, do not edit */
109
const
agx::RangeJob
& job,
110
agxData::Array< AutoT1 >
& result,
111
const
AutoT2& arg
112
)
113
{
114
for
(
size_t
i = job.
range
().
begin
(); i < job.
range
().
end
(); ++i)
115
{
116
agxFn::Math::Inv
(result[i], arg);
117
}
118
}
119
120
121
}
122
}
123
124
#endif
agx::RangeJob::range
IndexRange & range()
Definition:
Job.h:630
AffineMatrix4x4.h
Job.h
Math.h
Matrix4x4.h
AGX_FORCE_INLINE
#define AGX_FORCE_INLINE
Definition:
Object.h:62
EntityPtr.h
agx::inverse
T inverse(const T &value)
Definition:
Math.h:76
Array.h
agxData::Array
Type-specific Array used for fast access into the data held by a Buffer.
Definition:
agxData.h:30
agx::RangeJob
A range job executes a kernel implementation on a subset of the data.
Definition:
Job.h:282
agx::IndexRangeT::begin
T & begin()
Definition:
IndexRange.h:214
Real.h
agxFn::Math::Inv
void Inv(AutoT1 &result, const AutoT2 &arg)
Function: Math.Inv Implementation: (default)
Definition:
Inv.h:50
Integer.h
agx::IndexRangeT::end
T & end()
Definition:
IndexRange.h:217
Components
agx
Math
Inv.h
Generated on Mon Mar 21 2022 11:53:01 for AGXDynamics by
1.8.5