AttributeTrait
trait AttributeTrait (View source)
Attribute methods for NdArray
Properties
| protected array | $data |
Methods
void
__set(string $name, mixed $value)
Attribute setter
int|array|NdArray
__get(string $name)
Generic getter
int
getSize()
Get the total number of elements of the array
array
getShape(array|int|float $data, array $shape)
No description
Details
final void
__set(string $name, mixed $value)
Attribute setter
final int|array|NdArray
__get(string $name)
Generic getter
final protected int
getSize()
Get the total number of elements of the array