それらがそこにあることは知っていますが、自分で作成することで多くを学ぶことができると思います. このことを最適化することについてあまり複雑になりたくはありませんが、何人かの人々が何らかの意見を提供できることを望んでいました.
私はこのプロジェクトの範囲を狭めているので、目標は、今のところガウスの消去と行列の加算と乗算に使用できる Matrix クラスになることです。
私の概要は次のとおりです。
Code:
1. Class name: Matrix
2. Uses <vector> as a building block.
3. Constructors should consider:
a. Data Type
b. Size of Matrix to be created
4. Member functions:
a. row swapping
b. row multiply by non zero, real, constant
c. add multiple of one row to another row
d. get/set Element
e. augment (to append column of constants for solving systems)
f. gauss solve
5. Properties:
a. is singular
b. is zero
c. is square
考慮すべきことはたくさんあると思いますが、私は出発点を探しているだけです。
ベクターを構成要素として使用することに問題はありますか? あなたが提案する他の基本メンバー関数/プロパティはありますか?
ありがとう!