Matrix multiplication
a Group of M Pts, each with K dimensions (M-rows, K-columns)
a scalar number, an array of numeric arrays, or a Group of K Pts, each with N dimensions (K-rows, N-columns) -- or if transposed is true, then N Pts with K dimensions
(Only applicable if it's not elementwise multiplication) If true, then a and b's columns should match (ie, each Pt should have the same dimensions). Default is false
.
if true, then the multiplication is done element-wise. Default is false
.
If not elementwise, this will return a group with M Pt, each with N dimensions (M-rows, N-columns).
Get a rotate matrix for use in transform2D
Get a scale matrix for use in transform2D
Get a shear matrix for use in transform2D
Get a translate matrix for use in transform2D
Zip a group of Pt. eg, [[1,2],[3,4],[5,6]] => [[1,3,5],[2,4,6]]
a group of Pt
a default value to fill if index out of bound. If not provided, it will throw an error instead.
If true, find the longest list of values in a Pt and use its length for zipping. Default is false, which uses the first item's length for zipping.
Zip one slice of an array of Pt. Imagine the Pts are organized in rows, then this function will take the values in a specific column.
a group of Pt
a default value to fill if index out of bound. If not provided, it will throw an error instead.
Generated using TypeDoc
Mat provides static function for matrix operations. It's not yet optimized but good enough to use.