Matrix scale

matrix-scale · version 1.0.0 · Vectors & matrices · free, no key needed

Multiply every entry of a finite-number matrix by a scalar.

Use when you need to: matrix scalar multiplication · scale a matrix.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "matrix": [
    [
      1,
      2
    ],
    [
      3,
      4
    ]
  ],
  "scalar": 2
}

Response:

{
  "result": {
    "result": [
      [
        2,
        4
      ],
      [
        6,
        8
      ]
    ]
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "matrix-scale",
  "version": "1.0.0",
  "input": {
    "matrix": [
      [
        1,
        2
      ],
      [
        3,
        4
      ]
    ],
    "scalar": 2
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/matrix-scale/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"matrix":[[1,2],[3,4]],"scalar":2}'

The machine-readable contract is at /v1/tools/matrix-scale/versions/1.0.0.

CLI

node cli.mjs run matrix-scale 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.