MCPcopy Create free account
hub / github.com/BoevaLab/FREEC / columnidxabsmax

Function columnidxabsmax

src/blas.cpp:86–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85
86int columnidxabsmax(const ap::real_2d_array& x, int i1, int i2, int j)
87{
88 int result;
89 int i;
90 double a;
91
92 result = i1;
93 a = fabs(x(result,j));
94 for(i = i1+1; i <= i2; i++)
95 {
96 if( ap::fp_greater(fabs(x(i,j)),fabs(x(result,j))) )
97 {
98 result = i;
99 }
100 }
101 return result;
102}
103
104
105int rowidxabsmax(const ap::real_2d_array& x, int j1, int j2, int i)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected