%PDF- %PDF-
| Direktori : /usr/lib/python3/dist-packages/pythran/pythonic/numpy/ |
| Current File : //usr/lib/python3/dist-packages/pythran/pythonic/numpy/identity.hpp |
#ifndef PYTHONIC_NUMPY_IDENTITY_HPP
#define PYTHONIC_NUMPY_IDENTITY_HPP
#include "pythonic/include/numpy/identity.hpp"
#include "pythonic/numpy/eye.hpp"
PYTHONIC_NS_BEGIN
namespace numpy
{
template <class dtype>
auto identity(long n, dtype d) -> decltype(eye(n, n, 0, d))
{
return eye(n, n, 0, d);
}
}
PYTHONIC_NS_END
#endif