Skip to content

Commit 8a7862d

Browse files
docs: update to version 0.6.0
1 parent b45aa03 commit 8a7862d

20 files changed

+263
-2
lines changed

api/indexing/ndarray-diag.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# NDArray::diag
2+
3+
```php
4+
public static function diag(NDArray|array $a): NDArray;
5+
```
6+
Extract a diagonal or construct a diagonal array.
7+
8+
---

api/indexing/ndarray-slice.mdx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# NDArray::slice
2+
3+
```php
4+
public function slice(...$indices): NDArray|float;
5+
```
6+
Array slicing, each argument represents a slice of a dimension.
7+
8+
Empty arrays represent all values of a dimension, arrays with values are treated in
9+
the format `[start, stop, step]`, when only one value exists, it is automatically
10+
assigned to stop `[0, stop, 1]`, the default value of start is 0 and step is 1.
11+
12+
When instead of an array, a number is passed, it is also assigned to the
13+
stop of that dimension `[0, stop, 1]`.
14+
15+
---
16+
17+
## Notes
18+
19+
:::tip
20+
21+
#### GPU SUPPORTED
22+
This operation is supported by GPU (VRAM).
23+
24+
:::

api/initializers/ndarray-full.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# NDArray::full
2+
3+
```php
4+
public static function full(int[] $shape, float|int $fill_value): NDArray;
5+
```
6+
Return a new array of given shape and type, filled with $fill_value.
7+
8+
---
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# NDArray::append
2+
3+
```php
4+
public static function append(NDArray|array $array, NDArray|array $values, ?int $axis): NDArray
5+
```
6+
Append values to the end of an array.
7+
8+
---
9+
10+
## Notes
11+
12+
:::tip
13+
14+
#### GPU SUPPORTED
15+
This operation is supported by GPU (VRAM).
16+
17+
:::
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# NDArray::hstack
2+
3+
```php
4+
public static function concatenate(NDArray[] $arrays, ?int $axis = 0): NDArray;
5+
```
6+
Join a sequence of arrays along an existing axis.
7+
8+
---
9+
10+
## Notes
11+
12+
:::tip
13+
14+
#### GPU SUPPORTED
15+
This operation is supported by GPU (VRAM).
16+
17+
:::
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# NDArray::dstack
2+
3+
```php
4+
public static function dstack(array $arrays): NDArray;
5+
```
6+
Stack arrays in sequence depth wise (along third axis).
7+
8+
---
9+
10+
## Notes
11+
12+
:::tip
13+
14+
#### GPU SUPPORTED
15+
This operation is supported by GPU (VRAM).
16+
17+
:::

api/manipulation/ndarray-fill.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# NDArray::fill
2+
3+
```php
4+
public function fill(float|int $fill_value): NDArray;
5+
```
6+
Fill the array with a scalar value.
7+
8+
---
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# NDArray::hstack
2+
3+
```php
4+
public static function hstack(array $arrays): NDArray;
5+
```
6+
Stack arrays in sequence horizontally (column wise).
7+
8+
---
9+
10+
## Notes
11+
12+
:::tip
13+
14+
#### GPU SUPPORTED
15+
This operation is supported by GPU (VRAM).
16+
17+
:::
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# NDArray::moveaxis
2+
3+
```php
4+
public static function moveaxis(NDArray|array|float|int $a, int|int[] $source, int|int[] $destination): NDArray;
5+
```
6+
Move axes of an array to new positions.
7+
8+
---
9+
10+
## Notes
11+
12+
:::tip
13+
14+
#### GPU SUPPORTED
15+
This operation is supported by GPU (VRAM).
16+
17+
:::
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# NDArray::rollaxis
2+
3+
```php
4+
public static function rollaxis(NDArray|array|float|int $a, int $axis, int $start = 0): NDArray;
5+
```
6+
Roll the specified axis backwards, until it lies in a given position.
7+
8+
---
9+
10+
## Notes
11+
12+
:::tip
13+
14+
#### GPU SUPPORTED
15+
This operation is supported by GPU (VRAM).
16+
17+
:::

0 commit comments

Comments
 (0)