@@ -146,39 +146,39 @@ af_err af_assign_seq(af_array *out,
146146}
147147
148148template <typename T>
149- static void genAssign (af_array& out, const af_index_t * indexers , const af_array& rhs)
149+ static void genAssign (af_array& out, const af_index_t * indexs , const af_array& rhs)
150150{
151- detail::assign<T>(getWritableArray<T>(out), indexers , getArray<T>(rhs));
151+ detail::assign<T>(getWritableArray<T>(out), indexs , getArray<T>(rhs));
152152}
153153
154154af_err af_assign_gen (af_array *out,
155155 const af_array lhs,
156- const dim_type ndims, const af_index_t * indexers ,
156+ const dim_type ndims, const af_index_t * indexs ,
157157 const af_array rhs_)
158158{
159159 af_array output = 0 ;
160160 af_array rhs = rhs_;
161- // spanner is sequence indexer used for indexing along the
161+ // spanner is sequence index used for indexing along the
162162 // dimensions after ndims
163163 af_index_t spanner;
164- spanner.mIndexer .seq = af_span;
165- spanner.mIsSeq = true ;
164+ spanner.idx .seq = af_span;
165+ spanner.isSeq = true ;
166166
167167 try {
168168 ARG_ASSERT (2 , (ndims>0 ));
169- ARG_ASSERT (3 , (indexers !=NULL ));
169+ ARG_ASSERT (3 , (indexs !=NULL ));
170170
171171 int track = 0 ;
172172 vector<af_seq> seqs (4 , af_span);
173173 for (dim_type i = 0 ; i < ndims; i++) {
174- if (indexers [i].mIsSeq ) {
174+ if (indexs [i].isSeq ) {
175175 track++;
176- seqs[i] = indexers [i].mIndexer .seq ;
176+ seqs[i] = indexs [i].idx .seq ;
177177 }
178178 }
179179
180180 if (track==ndims) {
181- // all indexers are sequences, redirecting to af_assign
181+ // all indexs are sequences, redirecting to af_assign
182182 return af_assign_seq (out, lhs, ndims, &(seqs.front ()), rhs);
183183 }
184184
@@ -201,12 +201,12 @@ af_err af_assign_gen(af_array *out,
201201 ARG_ASSERT (2 , (lhsDims.ndims ()>=(int )ndims));
202202
203203 dim4 oDims = toDims (seqs, lhsDims);
204- // if af_array are indexers along any
204+ // if af_array are indexs along any
205205 // particular dimension, set the length of
206206 // that dimension accordingly before any checks
207207 for (dim_type i=0 ; i<ndims; i++) {
208- if (!indexers [i].mIsSeq ) {
209- oDims[i] = getInfo (indexers [i].mIndexer .arr ).elements ();
208+ if (!indexs [i].isSeq ) {
209+ oDims[i] = getInfo (indexs [i].idx .arr ).elements ();
210210 }
211211 }
212212
@@ -231,26 +231,26 @@ af_err af_assign_gen(af_array *out,
231231 }
232232
233233 af_index_t idxrs[4 ];
234- // set all dimensions above ndims to spanner indexer
234+ // set all dimensions above ndims to spanner index
235235 for (dim_type i=ndims; i<4 ; ++i) idxrs[i] = spanner;
236236
237237 for (dim_type i=0 ; i<ndims; ++i) {
238- if (!indexers [i].mIsSeq ) {
238+ if (!indexs [i].isSeq ) {
239239 // check if all af_arrays have atleast one value
240240 // to enable indexing along that dimension
241- ArrayInfo idxInfo = getInfo (indexers [i].mIndexer .arr );
241+ ArrayInfo idxInfo = getInfo (indexs [i].idx .arr );
242242 af_dtype idxType = idxInfo.getType ();
243243
244244 ARG_ASSERT (3 , (idxType!=c32));
245245 ARG_ASSERT (3 , (idxType!=c64));
246246 ARG_ASSERT (3 , (idxType!=b8 ));
247247
248- idxrs[i].mIndexer .arr = indexers [i].mIndexer .arr ;
249- idxrs[i].mIsSeq = indexers [i].mIsSeq ;
248+ idxrs[i].idx .arr = indexs [i].idx .arr ;
249+ idxrs[i].isSeq = indexs [i].isSeq ;
250250 } else {
251251 // af_seq is being used for this dimension
252- // just copy the indexer to local variable
253- idxrs[i] = indexers [i];
252+ // just copy the index to local variable
253+ idxrs[i] = indexs [i];
254254 }
255255 }
256256
0 commit comments