nd
in package
ND
A fast lite memory efficient Scientific Computing for php
Tags
Table of Contents
- DOUBLE = 2
- EPSILON = 1.0E-8
- FLOAT = 1
- INT = 3
- TWO_PI = 2.0 * M_PI
- $data : mixed
- $_mem : mixed
- $_time : mixed
- checkDimensions() : mixed
- checkDtype() : mixed
- checkShape() : mixed
- getMemory() : mixed
- set memory dog, get total memory
- time() : mixed
- set Timer, get total time
- __construct() : mixed
- _dimensionaMisMatchErr() : dimensionalityMismatch
- _dtypeErr() : dtypeException
- _err() : runtimeException
- _invalidArgument() : invalidArgumentException
- _ndDouble() : mixed
- _ndFloat() : mixed
- _ndInt() : mixed
Constants
DOUBLE
public
mixed
DOUBLE
= 2
EPSILON
public
mixed
EPSILON
= 1.0E-8
FLOAT
public
mixed
FLOAT
= 1
INT
public
mixed
INT
= 3
TWO_PI
public
mixed
TWO_PI
= 2.0 * M_PI
Properties
$data
public
mixed
$data
$_mem
protected
mixed
$_mem
= null
$_time
protected
mixed
$_time
= null
Methods
checkDimensions()
public
checkDimensions(matrix|vector $Obj1, matrix $Obj2) : mixed
Parameters
Return values
mixed —checkDtype()
public
checkDtype(matrix|vector $Obj1, matrix|vector $Obj2) : mixed
Parameters
Return values
mixed —checkShape()
public
checkShape(matrix|vector $Obj1, matrix|vector $Obj2) : mixed
Parameters
Return values
mixed —getMemory()
set memory dog, get total memory
public
getMemory() : mixed
Return values
mixed —time()
set Timer, get total time
public
time() : mixed
Return values
mixed —__construct()
protected
__construct(int $ndim[, int $dtype = self::FLOAT ]) : mixed
Parameters
- $ndim : int
- $dtype : int = self::FLOAT
Return values
mixed —_dimensionaMisMatchErr()
protected
static _dimensionaMisMatchErr(mixed $msg) : dimensionalityMismatch
Parameters
- $msg : mixed
Return values
dimensionalityMismatch —_dtypeErr()
protected
static _dtypeErr(mixed $msg) : dtypeException
Parameters
- $msg : mixed
Return values
dtypeException —_err()
protected
static _err(mixed $msg) : runtimeException
Parameters
- $msg : mixed
Return values
runtimeException —_invalidArgument()
protected
static _invalidArgument(mixed $argument) : invalidArgumentException
Parameters
- $argument : mixed
Return values
invalidArgumentException —_ndDouble()
protected
static _ndDouble(int $size) : mixed
Parameters
- $size : int
Return values
mixed —_ndFloat()
protected
static _ndFloat(int $size) : mixed
Parameters
- $size : int
Return values
mixed —_ndInt()
protected
static _ndInt(int $size) : mixed
Parameters
- $size : int