Server : Apache System : Linux dedi-14684855.grupobig.com 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : grupo692 ( 1004) PHP Version : 8.2.31 Disable Function : NONE Directory : /proc/self/root/usr/include/Imath/ |
//
// SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenEXR Project.
//
// clang-format off
#ifndef _PyImathM44Array_h_
#define _PyImathM44Array_h_
#include <boost/python.hpp>
#include <ImathMatrix.h>
#include "PyImathOperators.h"
namespace PyImath {
using namespace boost::python;
template <class T> struct M44ArrayName { static const char *value(); };
template <class T>
static void
setM44ArrayItem(FixedArray<IMATH_NAMESPACE::Matrix44<T> > &ma,
Py_ssize_t index,
const IMATH_NAMESPACE::Matrix44<T> &m)
{
ma[ma.canonical_index(index)] = m;
}
template <class T>
class_<FixedArray<IMATH_NAMESPACE::Matrix44<T> > >
register_M44Array()
{
class_<FixedArray<IMATH_NAMESPACE::Matrix44<T> > > m44Array_class = FixedArray<IMATH_NAMESPACE::Matrix44<T> >::register_("Fixed length array of IMATH_NAMESPACE::M44");
m44Array_class
.def("__setitem__", &setM44ArrayItem<T>)
;
return m44Array_class;
}
} // namespace PyImath
#endif // _PyImathM44Array_h_