-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathxgerc.cpp
63 lines (59 loc) · 1.12 KB
/
xgerc.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include "rt_nonfinite.h"
#include "processedout.h"
#include "xgerc.h"
void b_xgerc(int m, int n, double alpha1, int ix0, const double y[3], double A
[1080], int ia0)
{
int jA;
int jy;
int j;
double temp;
int ix;
int i11;
int ijA;
if (!(alpha1 == 0.0)) {
jA = ia0 - 1;
jy = 0;
for (j = 1; j <= n; j++) {
if (y[jy] != 0.0) {
temp = y[jy] * alpha1;
ix = ix0;
i11 = m + jA;
for (ijA = jA; ijA < i11; ijA++) {
A[ijA] += A[ix - 1] * temp;
ix++;
}
}
jy++;
jA += 360;
}
}
}
void xgerc(int m, int n, double alpha1, int ix0, const double y[3],
emxArray_real_T *A, int ia0, int lda)
{
int jA;
int jy;
int j;
double temp;
int ix;
int i7;
int ijA;
if (!(alpha1 == 0.0)) {
jA = ia0 - 1;
jy = 0;
for (j = 1; j <= n; j++) {
if (y[jy] != 0.0) {
temp = y[jy] * alpha1;
ix = ix0;
i7 = m + jA;
for (ijA = jA; ijA < i7; ijA++) {
A->data[ijA] += A->data[ix - 1] * temp;
ix++;
}
}
jy++;
jA += lda;
}
}
}