Vector outer product

vector-outer-product · version 1.0.0 · Vectors & matrices · free, no key needed

Compute the outer product of two finite-number vectors, producing a matrix.

Use when you need to: vector outer product · tensor product of two vectors · rank-1 matrix from two vectors.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "a": [
    1,
    2
  ],
  "b": [
    3,
    4,
    5
  ]
}

Response:

{
  "result": {
    "result": [
      [
        3,
        4,
        5
      ],
      [
        6,
        8,
        10
      ]
    ]
  }
}

How to call it

MCP

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

{
  "id": "vector-outer-product",
  "version": "1.0.0",
  "input": {
    "a": [
      1,
      2
    ],
    "b": [
      3,
      4,
      5
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/vector-outer-product/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"a":[1,2],"b":[3,4,5]}'

The machine-readable contract is at /v1/tools/vector-outer-product/versions/1.0.0.

CLI

node cli.mjs run vector-outer-product 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.