@@ -53,6 +53,23 @@ CTEST(rot,drot_inc_0)
5353 ASSERT_DBL_NEAR_TOL (y2 [i ], y1 [i ], DOUBLE_EPS );
5454 }
5555}
56+ CTEST (rot ,drot_inc_1 )
57+ {
58+ blasint i = 0 ;
59+ blasint N = 4 ,incX = 1 ,incY = 1 ;
60+ double c = 1.0 ,s = 1.0 ;
61+ double x1 []= {1.0 ,3.0 ,5.0 ,7.0 };
62+ double y1 []= {2.0 ,4.0 ,6.0 ,8.0 };
63+ double x2 []= {3.0 ,7.0 ,11.0 ,15.0 };
64+ double y2 []= {1.0 ,1.0 ,1.0 ,1.0 };
65+
66+ BLASFUNC (drot )(& N ,x1 ,& incX ,y1 ,& incY ,& c ,& s );
67+
68+ for (i = 0 ; i < N ; i ++ ){
69+ ASSERT_DBL_NEAR_TOL (x2 [i ], x1 [i ], DOUBLE_EPS );
70+ ASSERT_DBL_NEAR_TOL (y2 [i ], y1 [i ], DOUBLE_EPS );
71+ }
72+ }
5673#endif
5774
5875#ifdef BUILD_COMPLEX16
@@ -96,6 +113,23 @@ CTEST(rot,srot_inc_0)
96113 ASSERT_DBL_NEAR_TOL (y2 [i ], y1 [i ], SINGLE_EPS );
97114 }
98115}
116+ CTEST (rot ,srot_inc_1 )
117+ {
118+ blasint i = 0 ;
119+ blasint N = 4 ,incX = 1 ,incY = 1 ;
120+ float c = 1.0 ,s = 1.0 ;
121+ float x1 []= {1.0 ,3.0 ,5.0 ,7.0 };
122+ float y1 []= {2.0 ,4.0 ,6.0 ,8.0 };
123+ float x2 []= {3.0 ,7.0 ,11.0 ,15.0 };
124+ float y2 []= {1.0 ,1.0 ,1.0 ,1.0 };
125+
126+ BLASFUNC (srot )(& N ,x1 ,& incX ,y1 ,& incY ,& c ,& s );
127+
128+ for (i = 0 ; i < N ; i ++ ){
129+ ASSERT_DBL_NEAR_TOL (x2 [i ], x1 [i ], SINGLE_EPS );
130+ ASSERT_DBL_NEAR_TOL (y2 [i ], y1 [i ], SINGLE_EPS );
131+ }
132+ }
99133#endif
100134
101135#ifdef BUILD_COMPLEX
0 commit comments