// // php-armadillo/mat.hh // // @Author CismonX // #ifndef PHP_ARMA_MAT_HH #define PHP_ARMA_MAT_HH #include "php_arma.hh" #include "instantiable.hh" #include "complex.hh" namespace php_arma { template struct subview_mat; template struct mat : instantiable, false> { using native_t = arma::Mat; using orig_t = mat; using subview_t = subview_mat; using with_int_elem_t = mat; using with_pod_elem_t = mat::result>; friend void mat_init(); PHP_ARMA_CE_HANDLRES_DECLARE(); private: PHP_ARMA_COMMON_DECLARE(); static PHP_FUNCTION(init); static PHP_FUNCTION(fromString); static PHP_FUNCTION(fromArray); static void ce_init(zend_class_entry*); }; void mat_init(); constexpr const char mat_php_name[] = "Mat"; inline zend_class_entry *mat_ce; } #endif // !PHP_ARMA_MAT_HH