26 lines
609 B
C++
26 lines
609 B
C++
|
//
|
||
|
// php-armadillo/fill.cc
|
||
|
//
|
||
|
// @Author CismonX
|
||
|
//
|
||
|
|
||
|
#include "arma.hh"
|
||
|
#include "fill.hh"
|
||
|
|
||
|
namespace php_arma
|
||
|
{
|
||
|
void fill_init()
|
||
|
{
|
||
|
fill_ce = class_register("Fill", nullptr);
|
||
|
fill_ce->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS;
|
||
|
const_declare(fill_ce, "NONE", fill_none);
|
||
|
const_declare(fill_ce, "ZEROS", fill_zeros);
|
||
|
const_declare(fill_ce, "ONES", fill_ones);
|
||
|
const_declare(fill_ce, "EYE", fill_eye);
|
||
|
const_declare(fill_ce, "RANDU", fill_randu);
|
||
|
const_declare(fill_ce, "RANDN", fill_randn);
|
||
|
}
|
||
|
|
||
|
zend_class_entry *fill_ce;
|
||
|
}
|