Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

矩阵运算板子 | Ptilopsis_w's little blog #18

Open
Ptilopsisw opened this issue Aug 12, 2022 · 0 comments
Open

矩阵运算板子 | Ptilopsis_w's little blog #18

Ptilopsisw opened this issue Aug 12, 2022 · 0 comments

Comments

@Ptilopsisw
Copy link
Owner

https://ptilopsisw.github.io/2022/08/09/%E7%9F%A9%E9%98%B5%E8%BF%90%E7%AE%97%E6%9D%BF%E5%AD%90/

用法声明一个矩阵: matrix a; 支持 + , - , * , % , 下标访问和快速幂. 注意:为了方便debug,在不满足运算法则进行运算时会直接退出程序并输出 Matrix error! 默认矩阵大小为 Xsize , Ysize ,可自行修改我也写了构造函数,可以用 matrix a(10,10) 来手动规定矩形的长和宽. 默认情况下矩阵内全为0,可以通过下标访问修改矩阵内元素的值.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant