Algosim documentation: ❨❩

# ❨❩ (vector brackets)

Creates vectors and matrices.

## Syntax

• `❨a, b, ...❩`

• `a, b, ...` are numbers

• `❨u, v, ...❩`

• `u, v, ...` are vectors

## Description

Vector brackets `❨❩` are used to create vectors and matrices. If `a, b, ...` are numbers, then `❨a, b, ...❩` is the vector containing these numbers (in order). If `u, v, ...` are vectors of the same dimension, then `❨u, v, ...❩` is the matrix having these vectors are rows.

## Notes

• The vector brackets are implemented by the `vector` function.

• Using vector brackets is one of the principal ways of creating a matrix.

• To insert vector brackets, press Shift+Ctrl+V or Shift+Ctrl+E or type `\vect`. (See Keyboard input.)

## Examples

`A ≔ ❨❨1, 0, 2❩, ❨0, 1, 2❩, ❨1, 1, −1❩❩`
```⎛ 1   0   2⎞
⎜ 0   1   2⎟
⎝ 1   1  −1⎠
```
`u ≔ ❨1, 2, 1❩`
``` ⎛1⎞
e⎜2⎟
⎝1⎠
```
`A⋅u`
``` ⎛3⎞
e⎜4⎟
⎝2⎠
```