@@ -20,10 +20,10 @@ namespace x {
2020 class EWUnyOp
2121 {
2222 public:
23- using ptr_type = DPTensorBaseX ::ptr_type;
23+ using ptr_type = DNDArrayBaseX ::ptr_type;
2424
2525 template<typename T>
26- static ptr_type op(EWUnyOpId uop, const std::shared_ptr<DPTensorX <T>> & a_ptr)
26+ static ptr_type op(EWUnyOpId uop, const std::shared_ptr<DNDArrayX <T>> & a_ptr)
2727 {
2828 const auto & ax = a_ptr->xarray();
2929 if(a_ptr->is_sliced()) {
@@ -35,7 +35,7 @@ namespace x {
3535
3636#pragma GCC diagnostic ignored "-Wswitch"
3737 template<typename T1, typename T>
38- static ptr_type do_op(EWUnyOpId uop, const T1 & a, const std::shared_ptr<DPTensorX <T>> & a_ptr)
38+ static ptr_type do_op(EWUnyOpId uop, const T1 & a, const std::shared_ptr<DNDArrayX <T>> & a_ptr)
3939 {
4040 switch(uop) {
4141 case __ABS__:
@@ -122,72 +122,72 @@ namespace x {
122122} //namespace x
123123#endif // if 0
124124
125- // convert id of our unary op to id of imex::ptensor unary op
126- static ::imex::ptensor ::EWUnyOpId sharpy (const EWUnyOpId uop) {
125+ // convert id of our unary op to id of imex::ndarray unary op
126+ static ::imex::ndarray ::EWUnyOpId sharpy (const EWUnyOpId uop) {
127127 switch (uop) {
128128 case __ABS__:
129129 case ABS:
130- return ::imex::ptensor ::ABS;
130+ return ::imex::ndarray ::ABS;
131131 case ACOS:
132- return ::imex::ptensor ::ACOS;
132+ return ::imex::ndarray ::ACOS;
133133 case ACOSH:
134- return ::imex::ptensor ::ACOSH;
134+ return ::imex::ndarray ::ACOSH;
135135 case ASIN:
136- return ::imex::ptensor ::ASIN;
136+ return ::imex::ndarray ::ASIN;
137137 case ASINH:
138- return ::imex::ptensor ::ASINH;
138+ return ::imex::ndarray ::ASINH;
139139 case ATAN:
140- return ::imex::ptensor ::ATAN;
140+ return ::imex::ndarray ::ATAN;
141141 case ATANH:
142- return ::imex::ptensor ::ATANH;
142+ return ::imex::ndarray ::ATANH;
143143 case CEIL:
144- return ::imex::ptensor ::CEIL;
144+ return ::imex::ndarray ::CEIL;
145145 case COS:
146- return ::imex::ptensor ::COS;
146+ return ::imex::ndarray ::COS;
147147 case COSH:
148- return ::imex::ptensor ::COSH;
148+ return ::imex::ndarray ::COSH;
149149 case EXP:
150- return ::imex::ptensor ::EXP;
150+ return ::imex::ndarray ::EXP;
151151 case EXPM1:
152- return ::imex::ptensor ::EXPM1;
152+ return ::imex::ndarray ::EXPM1;
153153 case FLOOR:
154- return ::imex::ptensor ::FLOOR;
154+ return ::imex::ndarray ::FLOOR;
155155 case ISFINITE:
156- return ::imex::ptensor ::ISFINITE;
156+ return ::imex::ndarray ::ISFINITE;
157157 case ISINF:
158- return ::imex::ptensor ::ISINF;
158+ return ::imex::ndarray ::ISINF;
159159 case ISNAN:
160- return ::imex::ptensor ::ISNAN;
160+ return ::imex::ndarray ::ISNAN;
161161 case LOG:
162- return ::imex::ptensor ::LOG;
162+ return ::imex::ndarray ::LOG;
163163 case LOG1P:
164- return ::imex::ptensor ::LOG1P;
164+ return ::imex::ndarray ::LOG1P;
165165 case LOG2:
166- return ::imex::ptensor ::LOG2;
166+ return ::imex::ndarray ::LOG2;
167167 case LOG10:
168- return ::imex::ptensor ::LOG10;
168+ return ::imex::ndarray ::LOG10;
169169 case ROUND:
170- return ::imex::ptensor ::ROUND;
170+ return ::imex::ndarray ::ROUND;
171171 case SIGN:
172- return ::imex::ptensor ::SIGN;
172+ return ::imex::ndarray ::SIGN;
173173 case SIN:
174- return ::imex::ptensor ::SIN;
174+ return ::imex::ndarray ::SIN;
175175 case SINH:
176- return ::imex::ptensor ::SINH;
176+ return ::imex::ndarray ::SINH;
177177 case SQUARE:
178- return ::imex::ptensor ::SQUARE;
178+ return ::imex::ndarray ::SQUARE;
179179 case SQRT:
180- return ::imex::ptensor ::SQRT;
180+ return ::imex::ndarray ::SQRT;
181181 case TAN:
182- return ::imex::ptensor ::TAN;
182+ return ::imex::ndarray ::TAN;
183183 case TANH:
184- return ::imex::ptensor ::TANH;
184+ return ::imex::ndarray ::TANH;
185185 case TRUNC:
186- return ::imex::ptensor ::TRUNC;
186+ return ::imex::ndarray ::TRUNC;
187187 case ERF:
188- return ::imex::ptensor ::ERF;
188+ return ::imex::ndarray ::ERF;
189189 case LOGICAL_NOT:
190- return ::imex::ptensor ::LOGICAL_NOT;
190+ return ::imex::ndarray ::LOGICAL_NOT;
191191 case __NEG__:
192192 case NEGATIVE:
193193 case __POS__:
@@ -210,10 +210,10 @@ struct DeferredEWUnyOp : public Deferred {
210210 jit::DepManager &dm) override {
211211 auto av = dm.getDependent (builder, _a);
212212
213- auto aTyp = av.getType ().cast <::imex::ptensor::PTensorType >();
213+ auto aTyp = av.getType ().cast <::imex::ndarray::NDArrayType >();
214214 auto outTyp = aTyp.cloneWith (shape (), aTyp.getElementType ());
215215
216- auto uop = builder.create <::imex::ptensor ::EWUnyOp>(
216+ auto uop = builder.create <::imex::ndarray ::EWUnyOp>(
217217 loc, outTyp, builder.getI32IntegerAttr (sharpy (_op)), av);
218218
219219 dm.addVal (this ->guid (), uop,
0 commit comments