PHP 클래스 NumPHP\Core\NumPHP

부터: 1.0.0
저자: Gordon Lesti ([email protected])
파일 보기 프로젝트 열기: numphp/numphp 1 사용 예제들

공개 메소드들

메소드 설명
arange ( float $low, float $high, float $step = 1 ) : NumArray Creates a vector (NumArray) from $low to $high with $step steps
eye ( integer $mAxis, integer $nAxis ) : NumArray Returns a matrix (NumArray) filled with 0 and 1 on the main diagonal
identity ( integer $mAxis ) : NumArray Returns a identity matrix (NumArray) filled with 0 and 1 on the main diagonal
linspace ( float $low, float $high, integer $number ) : NumArray Creates a vector (NumArray) from $low to $high with the size of $number
ones ( ) : NumArray Returns a NumArray filled with 1
onesLike ( NumArray $numArray ) : NumArray Returns a NumArray with the same size, but filled with 1
rand ( ) : NumArray Returns a NumArray filled with random values
randLike ( NumArray $numArray ) : NumArray Returns a NumArray with the same size, but filled with random values
zeros ( ) : NumArray Returns a NumArray filled with 0
zerosLike ( NumArray $numArray ) : NumArray Returns a NumArray with the same size, but filled with 0

메소드 상세

arange() 공개 정적인 메소드

Creates a vector (NumArray) from $low to $high with $step steps
부터: 1.0.0
public static arange ( float $low, float $high, float $step = 1 ) : NumArray
$low float beginning of the vector
$high float end of the vector
$step float steps, if not given `$step` = `1.0`
리턴 NumArray

eye() 공개 정적인 메소드

Returns a matrix (NumArray) filled with 0 and 1 on the main diagonal
부터: 1.0.0
public static eye ( integer $mAxis, integer $nAxis ) : NumArray
$mAxis integer size of the m axis
$nAxis integer size of the n axis, if not given `$nAxis` = `$mAxis`
리턴 NumArray

identity() 공개 정적인 메소드

Returns a identity matrix (NumArray) filled with 0 and 1 on the main diagonal
부터: 1.0.0
public static identity ( integer $mAxis ) : NumArray
$mAxis integer size of the m axis and n axis
리턴 NumArray

linspace() 공개 정적인 메소드

Creates a vector (NumArray) from $low to $high with the size of $number
부터: 1.0.0
public static linspace ( float $low, float $high, integer $number ) : NumArray
$low float beginning of the vector
$high float end of the vector
$number integer size of the vector
리턴 NumArray

ones() 공개 정적인 메소드

Returns a NumArray filled with 1
부터: 1.0.0
public static ones ( ) : NumArray
리턴 NumArray

onesLike() 공개 정적인 메소드

Returns a NumArray with the same size, but filled with 1
부터: 1.0.0
public static onesLike ( NumArray $numArray ) : NumArray
$numArray NumArray given NumArray
리턴 NumArray

rand() 공개 정적인 메소드

Returns a NumArray filled with random values
부터: 1.0.0
public static rand ( ) : NumArray
리턴 NumArray

randLike() 공개 정적인 메소드

Returns a NumArray with the same size, but filled with random values
부터: 1.0.0
public static randLike ( NumArray $numArray ) : NumArray
$numArray NumArray given NumArray
리턴 NumArray

zeros() 공개 정적인 메소드

Returns a NumArray filled with 0
부터: 1.0.0
public static zeros ( ) : NumArray
리턴 NumArray

zerosLike() 공개 정적인 메소드

Returns a NumArray with the same size, but filled with 0
부터: 1.0.0
public static zerosLike ( NumArray $numArray ) : NumArray
$numArray NumArray given NumArray
리턴 NumArray