[FEA] Add a smaller tensor header #1275
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.33) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 138 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.295
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1275"
general
weight: 0.35
MashrafeeAryan
What this does
Adds
matx/core/matx_tensor.hfor users who only need tensors and basic unary and binary operations such as-aanda + b.It keeps unrelated printing and CUDA library helpers out of this include path. Users who need the full MatX API can continue to include
matx.h.Testing
Built and tested the new header in Google Colab with a Tesla T4, CUDA 13.0.88, GCC 13.3.0, and C++20.
matx.h.In a five-run benchmark of a small CUDA source file, median compile time fell from 29.19 seconds with
matx.hto 10.28 seconds with the smaller header (64.8% less compile time). This measures one small source file, not a full project build.The full MatX test suite has not been run.
To ensure it does not break current implementation, I would wait for CI/CD pipeline tests.
Documentation
Updated the Quick Start and Build Integration guides to explain when to use each header.
Related issue
Closes #410