 |
My Project
debian-1:4.1.1-p2+ds-4build1
|
|
template<unsigned int Precision> |
void | applyrotationsfromtheleft (bool isforward, int m1, int m2, int n1, int n2, const ap::template_1d_array< amp::ampf< Precision > > &c, const ap::template_1d_array< amp::ampf< Precision > > &s, ap::template_2d_array< amp::ampf< Precision > > &a, ap::template_1d_array< amp::ampf< Precision > > &work) |
|
template<unsigned int Precision> |
void | applyrotationsfromtheright (bool isforward, int m1, int m2, int n1, int n2, const ap::template_1d_array< amp::ampf< Precision > > &c, const ap::template_1d_array< amp::ampf< Precision > > &s, ap::template_2d_array< amp::ampf< Precision > > &a, ap::template_1d_array< amp::ampf< Precision > > &work) |
|
template<unsigned int Precision> |
void | generaterotation (amp::ampf< Precision > f, amp::ampf< Precision > g, amp::ampf< Precision > &cs, amp::ampf< Precision > &sn, amp::ampf< Precision > &r) |
|
◆ applyrotationsfromtheleft()
template<unsigned int Precision>
Definition at line 133 of file rotations.h.
137 if( ctemp!=1 || stemp!=0 )
154 for(
j=m1;
j<=m2-1;
j++)
158 if( ctemp!=1 || stemp!=0 )
161 a(
j+1,n1) = ctemp*temp-stemp*a(
j,n1);
162 a(
j,n1) = stemp*temp+ctemp*a(
j,n1);
175 for(
j=m2-1;
j>=m1;
j--)
179 if( ctemp!=1 || stemp!=0 )
196 for(
j=m2-1;
j>=m1;
j--)
200 if( ctemp!=1 || stemp!=0 )
203 a(
j+1,n1) = ctemp*temp-stemp*a(
j,n1);
204 a(
j,n1) = stemp*temp+ctemp*a(
j,n1);
237 template<
unsigned int Precision>
◆ applyrotationsfromtheright()
template<unsigned int Precision>
Definition at line 270 of file rotations.h.
288 for(
j=n1;
j<=n2-1;
j++)
292 if( ctemp!=1 || stemp!=0 )
295 a(m1,
j+1) = ctemp*temp-stemp*a(m1,
j);
296 a(m1,
j) = stemp*temp+ctemp*a(m1,
j);
309 for(
j=n2-1;
j>=n1;
j--)
313 if( ctemp!=1 || stemp!=0 )
330 for(
j=n2-1;
j>=n1;
j--)
334 if( ctemp!=1 || stemp!=0 )
337 a(m1,
j+1) = ctemp*temp-stemp*a(m1,
j);
338 a(m1,
j) = stemp*temp+ctemp*a(m1,
j);
354 template<
unsigned int Precision>
◆ generaterotation()
template<unsigned int Precision>
void generaterotation(amp::ampf< Precision > f, amp::ampf< Precision > g, amp::ampf< Precision > &cs, amp::ampf< Precision > &sn, amp::ampf< Precision > &r)
void vmove(raw_vector< T > vdst, const_raw_vector< T > vsrc)
void vadd(raw_vector< T > vdst, const_raw_vector< T > vsrc)
raw_vector< T > getvector(int iStart, int iEnd)
void vmul(raw_vector< T > vdst, T2 alpha)
raw_vector< T > getcolumn(int iColumn, int iRowStart, int iRowEnd)
void applyrotationsfromtheright(bool isforward, int m1, int m2, int n1, int n2, const ap::template_1d_array< amp::ampf< Precision > > &c, const ap::template_1d_array< amp::ampf< Precision > > &s, ap::template_2d_array< amp::ampf< Precision > > &a, ap::template_1d_array< amp::ampf< Precision > > &work)
raw_vector< T > getrow(int iRow, int iColumnStart, int iColumnEnd)
void vsub(raw_vector< T > vdst, const_raw_vector< T > vsrc)
const CanonicalForm int s