![]() |
VISR
0.11.7
Versatile Interactive Scene Renderer
|
Functions | |
template<typename DataType > | |
efl::BasicMatrix< DataType > | matrixFromNdArray (pybind11::array_t< SampleType > const &array, std::size_t alignment=0) |
template<typename DataType > | |
efl::BasicVector< DataType > | vectorFromNdArray (pybind11::array_t< SampleType > const &array, std::size_t alignment=0) |
efl::BasicMatrix<DataType> visr::python::bindinghelpers::matrixFromNdArray | ( | pybind11::array_t< SampleType > const & | array, |
std::size_t | alignment = 0 |
||
) |
Create a efl::BasicMatrix from a 2-D numpy.ndarray.
DataType | The element data type. |
array | A 2D ndarray with the Numpy equivalent of DataType . |
alignment | Element alignment of the resulting BasicMatrix, default 0. |
efl::BasicVector<DataType> visr::python::bindinghelpers::vectorFromNdArray | ( | pybind11::array_t< SampleType > const & | array, |
std::size_t | alignment = 0 |
||
) |
Create a efl::BasicMatrix from a 2-D numpy.ndarray.
DataType | The element data type. |
array | A 2D ndarray with the Numpy equivalent of DataType . |
alignment | Element alignment of the resulting BasicMatrix, default 0. |