diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-09-07 22:55:46 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-09-07 22:55:46 +0900 |
| commit | 4343e6891b7f2db5dbd9cc43078c45ce4aee025b (patch) | |
| tree | ce9cbfb0816f80a174c7afaefc91c2a7f2ff4e81 | |
| parent | 92ea8ff9f471ec920a2ee4edc29560acd83f99c4 (diff) | |
| download | mncore-challenge-4343e6891b7f2db5dbd9cc43078c45ce4aee025b.tar.gz mncore-challenge-4343e6891b7f2db5dbd9cc43078c45ce4aee025b.tar.zst mncore-challenge-4343e6891b7f2db5dbd9cc43078c45ce4aee025b.zip | |
14-Matrix-Square
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | problems/14-Matrix-Square/02.vsm | 17 |
2 files changed, 18 insertions, 1 deletions
@@ -7,4 +7,4 @@ matrix_square_testcase_2: ./judge problems/14-Matrix-Square/testcase_2_float_8x8.vsm problems/14-Matrix-Square/answer_2_float_8x8.vsm matrix_square: - ./judge problems/14-Matrix-Square/testcase.vsm problems/14-Matrix-Square/01.vsm + ./judge problems/14-Matrix-Square/testcase.vsm problems/14-Matrix-Square/02.vsm diff --git a/problems/14-Matrix-Square/02.vsm b/problems/14-Matrix-Square/02.vsm new file mode 100644 index 0000000..e4ca741 --- /dev/null +++ b/problems/14-Matrix-Square/02.vsm @@ -0,0 +1,17 @@ +hmwrite $llm0vr $ly0; hbfn/9 $llm0vr $lr0v +hmwrite $llm16vr $ly4; hbfn/9 $llm16vr $lr8v +hmwrite $llm32vr $ly8; hbfn/9 $llm32vr $lr16v +hmwrite $llm48vr $ly12; hbfn/9 $llm48vr $lr24v + +hmwrite $llr0v $llx0; hmread $lly0 $nowrite +hmwrite $llr16v $llx8; hmread $lly8 $nowrite; hbfn/9 $mreadf $lls0v +hbfn/9 $mreadf $llr0v + +hmmul $lx $ls0v $lln0v +hmmul $lx $ls8v $lln16v +hmmul $lx $lr0v $lln32v +hmmul $lx $lr8v $lln48v + +# BF, write to $x +# write to $y, read from $y^T, BF +# mmul |
