---
title: "transformMat64(): IR builder function in typeshade/core/ir"
description: "transformMat64, an IR builder function in typeshade/core/ir. matNxN<f64> × vecN<f64> → vecN<f64>: the emulated-double matrix-vector product."
url: https://typeshade.dev/api/transformmat64/
language: en
---

# `transformMat64()`

Function in Builtins

matNxN<`f64`> × vecN<`f64`> → vecN<`f64`>: the emulated-double matrix-vector product.

`import { transformMat64 } from 'typeshade/core/ir'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
const transformMat64: <N extends 2 | 3 | 4>(
  m: ReadonlyNode<`mat${N}x${N}<f64>`>,
  v: ReadonlyNode<`vec${N}<f64>`>,
) => Node<`vec${N}<f64>`>
```

## Parameters

**`m` ``ReadonlyNode<`mat${N}x${N}<f64>`>``**

**`v` ``ReadonlyNode<`vec${N}<f64>`>``**

## Return value

``Node<`vec${N}<f64>`>``

## Description

The generic `.mul` rejects a matrix operand; this is the `f64` counterpart of [`transformMat4`](https://typeshade.dev/api/transformmat4/).

## See also

- [`transformMat4`](https://typeshade.dev/api/transformmat4/)

## Source

[`src/core/ir/node.ts`, line 2434](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/node.ts#L2434), at commit af54ddad5
