Enable list-of-matrix use of vmul().

This commit is contained in:
Garth Minette
2020-09-28 17:35:05 -07:00
parent 23bcc1b806
commit cc29e07d8f
3 changed files with 7 additions and 7 deletions

View File

@@ -41,8 +41,9 @@ test_vceil();
module test_vmul() {
assert(vmul([3,4,5], [8,7,6]) == [24,28,30]);
assert(vmul([1,2,3], [4,5,6]) == [4,10,18]);
assert_equal(vmul([3,4,5], [8,7,6]), [24,28,30]);
assert_equal(vmul([1,2,3], [4,5,6]), [4,10,18]);
assert_equal(vmul([[1,2,3],[4,5,6],[7,8,9]], [[4,5,6],[3,2,1],[5,9,3]]), [32,28,134]);
}
test_vmul();