Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F5021468
div.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
div.cpp
View Options
//
// File: div.cpp
//
// MATLAB Coder version : 5.3
// C/C++ source code generated on : 31-Mar-2023 11:34:29
//
// Include Files
#include "div.h"
#include "rt_nonfinite.h"
#include "coder_array.h"
// Function Definitions
//
// Arguments : coder::array<double, 1U> &newEstimates
// const coder::array<double, 1U> &inputFramePower
// const coder::array<double, 2U> &previousMFramesPower
// int blockIndex
// Return Type : void
//
void
binary_expand_op
(
coder
::
array
<
double
,
1U
>
&
newEstimates
,
const
coder
::
array
<
double
,
1U
>
&
inputFramePower
,
const
coder
::
array
<
double
,
2U
>
&
previousMFramesPower
,
int
blockIndex
)
{
int
i
;
int
loop_ub
;
int
stride_0_0
;
int
stride_1_0
;
i
=
previousMFramesPower
.
size
(
0
);
if
(
i
==
1
)
{
stride_0_0
=
inputFramePower
.
size
(
0
);
}
else
{
stride_0_0
=
i
;
}
newEstimates
.
set_size
(
stride_0_0
);
stride_0_0
=
(
inputFramePower
.
size
(
0
)
!=
1
);
stride_1_0
=
(
i
!=
1
);
if
(
i
==
1
)
{
loop_ub
=
inputFramePower
.
size
(
0
);
}
else
{
loop_ub
=
i
;
}
for
(
i
=
0
;
i
<
loop_ub
;
i
++
)
{
newEstimates
[
i
]
=
inputFramePower
[
i
*
stride_0_0
]
/
previousMFramesPower
[
i
*
stride_1_0
+
previousMFramesPower
.
size
(
0
)
*
blockIndex
];
}
}
//
// File trailer for div.cpp
//
// [EOF]
//
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Mon, May 19, 03:08 (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1431561
Default Alt Text
div.cpp (1 KB)
Attached To
R350 av_svc
Event Timeline
Log In to Comment