arrayfire / arrayfire/arrayfire-python

Interpolation along particular axis

Abierto
#141 2 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
422
Forks
63
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Currently, the interpolation function performs the interpolation along the 0th and the 1st axis. However, in my problem of interest, I need to interpolate along all the 4 axes. Could the feature of having interpolation along a particular axis be added on in `af.approx2`. Right now, I'm reordering the arrays such that the axes along which I need to interpolate are moved to the 0th and 1st axes. After which I need to reorder the resulting array to bring it back to the original convention.

This is what I'm currently doing right now:
```python
# vel_y_interpolant is stacked along axis 2
# vel_x_interpolant is stacked along axis 3
f_interp = af.approx2(af.reorder(f, 2, 3, 0, 1),\
af.reorder(vel_y_interpolant, 2, 3, 0, 1),\
af.reorder(vel_x_interpolant, 2, 3, 0, 1),\
af.INTERP.BICUBIC_SPLINE
)

f_interp = af.reorder(f_interp, 2, 3, 0, 1)
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Start by reading the af.approx2 entry point and the issue's reorder-based example to understand the current axis assumptions. Check how interpolation arguments are exposed in the Python bindings. Done means af.approx2 can select the interpolation axes, including all four axes in the reported use case, without reordering the input and result arrays.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
api
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.