# shz_xmtrx_init_upper_triangular

Source: https://sh4zam.com/api/xmtrx/shz_xmtrx_init_upper_triangular/

```c
SHZ_INLINE void shz_xmtrx_init_upper_triangular(float col1, shz_vec2_t col2, shz_vec3_t col3, shz_vec4_t col4) SHZ_NOEXCEPT;
```

Initializes XMTRX to be an upper triangular matrix with the given column values.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `col1` | `float` |  |
| `col2` | `shz_vec2_t` |  |
| `col3` | `shz_vec3_t` |  |
| `col4` | `shz_vec4_t` |  |

## Returns

Nothing (`void`).

## Availability

- **C++ equivalent:** [`shz::xmtrx::init_upper_triangular`](https://sh4zam.com/api/cpp/xmtrx/#init_upper_triangular)
- **Type-generic form:** none
- **Back-ends:** SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_xmtrx.h:335`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_xmtrx.h#L335)
- **Module:** [XMTRX](https://sh4zam.com/api/xmtrx/), section "Initialization"
