My explorations of unit analysis for matrix and vector math are promising: http://erikerlandson.github.io/blog/2020/05/01/unit-analysis-for-linear-algebra/ Not sure what the best vehicle is, maybe Spark Dataset as the representation for "tabular matrix". See also #50