This repository has been archived on 2020-06-07. You can view files and clone it, but cannot push or open issues or pull requests.
php-armadillo/src/matrix.hh

43 lines
911 B
C++
Raw Normal View History

2019-05-25 18:21:48 +00:00
//
// php-armadillo/matrix.hh
//
// @Author CismonX
//
#ifndef PHP_ARMA_MATRIX_HH
#define PHP_ARMA_MATRIX_HH
2019-11-04 09:42:11 +00:00
#include "common/php_arma.hh"
2019-05-25 18:21:48 +00:00
namespace php_arma
{
template <typename T, typename ChildT>
struct matrix
{
using native_t = typename ChildT::native_t;
PHP_ARMA_COMMON_DECLARE();
private:
static PHP_FUNCTION(nRows);
static PHP_FUNCTION(nCols);
static PHP_FUNCTION(isVec);
static PHP_FUNCTION(isCol);
static PHP_FUNCTION(isRow);
static PHP_FUNCTION(isSquare);
static PHP_FUNCTION(isSymmetric);
2019-05-25 18:21:48 +00:00
static PHP_FUNCTION(isHermitian);
static PHP_FUNCTION(swapRows);
static PHP_FUNCTION(swapCols);
static PHP_FUNCTION(t);
};
void matrix_init();
constexpr const char matrix_php_name[] = "Matrix";
inline zend_class_entry *matrix_ce;
}
#endif // !PHP_ARMA_MATRIX_HH