trait RangeTrait (View source)

Methods

static NdArray
arange(int|float $start, int|float $end = null, int|float $step = 1)

Creates a NdArray with a range of values

static 
linspace($start, $end, int $num = 50, bool $endpoint = true, bool $retstep = false)

No description

static NdArray
logspace(int|float $start, int|float $end, int $num = 50, bool $endpoint = true, float $base = 10)

Creates a NdArray with a range of values

Details

final static NdArray arange(int|float $start, int|float $end = null, int|float $step = 1)

Creates a NdArray with a range of values

Parameters

int|float $start
int|float $end
int|float $step

Return Value

NdArray

final static linspace($start, $end, int $num = 50, bool $endpoint = true, bool $retstep = false)

Parameters

$start
$end
int $num
bool $endpoint
bool $retstep

final static NdArray logspace(int|float $start, int|float $end, int $num = 50, bool $endpoint = true, float $base = 10)

Creates a NdArray with a range of values

Parameters

int|float $start
int|float $end
int $num
bool $endpoint
float $base

Return Value

NdArray