Description
Calculate base + row × rowStride + column × columnStride and require a nonnegative safe-integer offset.
A matrix coordinate, a storage offset, and a block-local coordinate are different representations. Shape, stride, origin, and transpose conventions determine the correct mapping.
Calculate base + row × rowStride + column × columnStride and require a nonnegative safe-integer offset.
When to use this tool
Use Matrix Strided View Entry Offset when you need one explicit matrix-coordinate or address conversion.
How to use the tool and how it works
- Enter base, row, column, rowStride, columnStride. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read offset. Use the output convention below.
Calculate base + row × rowStride + column × columnStride and require a nonnegative safe-integer offset.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| base | Base | Required. Safe integer; minimum 0. |
| row | Row | Required. Safe integer; minimum 0. |
| column | Column | Required. Safe integer; minimum 0. |
| rowStride | Signed offset increment per row, in the same unit as base. | Required. Safe integer. |
| columnStride | Signed offset increment per column, in the same unit as base. | Required. Safe integer. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| offset | Offset | Required. Safe integer. |
{
"input": {
"base": 10,
"row": 2,
"column": 3,
"rowStride": 8,
"columnStride": 1
},
"output": {
"offset": 29
}
} Limitations and assumptions
- Strides share the offset's chosen unit and may be signed; no buffer bounds, aliasing, or element size is checked.
- 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
Validate the full shape, memory span, and storage convention before using the resulting index.
References
Similar or alternative tools
- Matrix One Entry Transpose Address
Validate a zero-based coordinate in positive rows and columns, then swap row with column and rows with columns.
- Matrix Kron Entry Factor Index
Divide row by rightRows and column by rightColumns for left-factor indices; use the respective remainders for right-factor indices.