NumPHP\Core\NumArray::getData PHP Метод

getData() публичный Метод

Returns the data of the NumArray
С версии: 1.0.0
public getData ( ) : mixed
Результат mixed
    public function getData()
    {
        return $this->data;
    }

Usage Example

Пример #1
0
 /**
  * Combines all elements of an NumArray at a given axis with the `$callback`
  * function
  *
  * @param NumArray $numArray given NumArray
  * @param callback $callback callback function
  * @param int      $axis     given axis
  *
  * @return NumArray
  *
  * @throws InvalidArgumentException will be thrown, if axis is out of bounds
  *
  * @since 1.0.0
  */
 public static function reduceArray(NumArray $numArray, $callback, $axis)
 {
     if ($axis && $axis >= $numArray->getNDim()) {
         throw new InvalidArgumentException('Axis ' . $axis . ' out of bounds');
     }
     return new NumArray(self::reduceRecursive($numArray->getData(), $callback, $axis));
 }
All Usage Examples Of NumPHP\Core\NumArray::getData