sciphp/numphp

View on GitHub
src/SciPhp/NdArray/BasicTrait.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

declare(strict_types=1);

namespace SciPhp\NdArray;

use SciPhp\NdArray;
use SciPhp\NumPhp as np;

/**
 * Basics for NdArray
 */
trait BasicTrait
{
    /**
     * Create a copy
     *
     * @link http://sciphp.org/ndarray.copy Documentation
     * @api
     */
    final public function copy(): NdArray
    {
        return np::ar($this->data);
    }
}