1
나는 그들이 저곳에 있다는 것을 알고 있지만, 나는 내 자신을 창조함으로써 많은 것을 배울 수 있다고 생각합니다. 나는이 일을 최적화하는 데 너무 복잡하게 굴고 싶지 않지만 일부 사람들이 약간의 의견을 제시 할 수 있기를 희망했다.C++ : 매트릭스 클래스 만들기
목표는 가우스 제거 및 행렬 추가 및 곱셈에 사용할 수있는 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
내가 고려하는 많은이 있는지,하지만 난 그냥 출발점을 찾고 다음과 같이
내 개요입니다.
벡터를 내 빌딩 블록으로 사용하는 데 문제가 있습니까? 다른 기본 멤버 함수/속성을 제안합니까?
감사합니다.