Code Coverage for /src/SciPhp/NdArray/BasicTrait.php

 
Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
BasicTrait
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 copy
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1 <?php
2
3 declare(strict_types=1);
4
5 namespace SciPhp\NdArray;
6
7 use SciPhp\NdArray;
8 use SciPhp\NumPhp as np;
9
10 /**
11  * Basics for NdArray
12  */
13 trait BasicTrait
14 {
15     /**
16      * Create a copy
17      *
18      * @link http://sciphp.org/ndarray.copy Documentation
19      * @api
20      */
21     final public function copy(): NdArray
22     {
23         return np::ar($this->data);
24     }
25 }