83 Serial.println(
"Solve system Ax = v");
84 Serial.println(
"-------------------\n");
96 Serial.println(
"A = ");
98 Serial.println(
"v =");
100 Serial.println(
"QR factorization of A:");
101 Serial.println(
"Q =");
102 Serial.println(qr.
get_Q());
103 Serial.println(
"R =");
104 Serial.println(qr.
get_R());
105 Serial.println(
"solution x =");
106 Serial.println(x_solution);
108 Serial.println(
"Basic matrix operations");
109 Serial.println(
"-----------------------\n");
124 Serial.println(
"C×B + D =");
127 Serial.println(
"Basic vector operations");
128 Serial.println(
"-----------------------\n");
133 Serial.print(
"a = ");
135 Serial.print(
"b = ");
137 Serial.print(
"a×b = ");
139 Serial.print(
"a·b = ");
143 Serial.println(
"Element access");
144 Serial.println(
"--------------\n");
145 Serial.print(
"A[2,0] = ");
146 Serial.println(A(2, 0));
149 Serial.println(
"A[2,0] ← 100");
151 Serial.println(
"A =");
QR factorization using Householder reflectors.
Matrix solve(const Matrix &B) const
Solve the system AX = B or QRX = B.
Matrix get_R() const &
Get a copy of the upper-triangular matrix R.
SquareMatrix get_Q() const
Compute the unitary matrix Q.
A row vector (1×n matrix).
static RowVector cross(const RowVector &a, const RowVector &b)
Compute the cross product of two 3-vectors.
static double dot(const RowVector &a, const RowVector &b)
Compute the dot product of two vectors.
A column vector (n×1 matrix).
static Vector ones(size_t size)
Create a vector filled with ones.