Description
Add addedRows and addedColumns to the core shape.
Matrix shapes can be empty or have singleton axes without containing a scalar. Broadcasting expands singleton dimensions under an explicit axis-by-axis compatibility rule.
Add addedRows and addedColumns to the core shape.
When to use this tool
Use Matrix Block Border Shape Budget when you need a matrix shape, count, or structural entry classification.
How to use the tool and how it works
- Enter coreRows, coreColumns, addedRows, addedColumns. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read rows, columns, borderEntries. Use the output convention below.
Add addedRows and addedColumns to the core shape. Count borderEntries as coreRows × addedColumns + addedRows × coreColumns + addedRows × addedColumns.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| coreRows | Core Rows | Required. Safe integer; minimum 0. |
| coreColumns | Core Columns | Required. Safe integer; minimum 0. |
| addedRows | Added Rows | Required. Safe integer; minimum 0. |
| addedColumns | Added Columns | Required. Safe integer; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| rows | Rows | Required. Safe integer. |
| columns | Columns | Required. Safe integer. |
| borderEntries | Border Entries | Required. Safe integer. |
{
"input": {
"coreRows": 2,
"coreColumns": 3,
"addedRows": 1,
"addedColumns": 2
},
"output": {
"rows": 3,
"columns": 5,
"borderEntries": 9
}
} Limitations and assumptions
- This counts new positions without storing data or determining block contents.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Check all axes and actual data lengths when validating a complete matrix or broadcast operation.
References
Similar or alternative tools
- Matrix Offdiagonal Entry Count
Compute rows × columns - min(rows, columns) using exact integers and return the off-diagonal count as decimal text.
- Matrix: Matrix Shape Degenerate Axis Tag
Allow zero dimensions.