The Output always Comes out to be 96
#include <BasicLinearAlgebra.h>
using namespace BLA;
void setup() {
Serial.begin(115200);
int j;
Serial.println(j);
char str1[] = "Hello World";
char buffer[30];
for(int i = 0; i < strlen(str1); i++){
sprintf(buffer, "%u\n", &str1 + i);
Serial.print(buffer);
}
BLA::Matrix<3,3,int> A = {9, 8, 7, 6, 5, 4, 3, 2, 1};
BLA::Matrix<3,3,int> B = {0, 0, 1, 0, 1, 0, 1, 0, 0};
Serial << "~A*B: " << ~A * B << '\n';
Serial << "~A: " << ~A << '\n';
Serial << "A: " << A << '\n';
auto b = BLA::Determinant(A);
Serial << "|A|: " << b << '\n';
}
void loop() {
}
Output
0
1070514050
1070514062
1070514074
1070514086
1070514098
1070514110
1070514122
1070514134
1070514146
1070514158
1070514170
A*B: [[3,6,9],[2,5,8],[1,4,7]]
~A: [[9,6,3],[8,5,2],[7,4,1]]
A: [[9,8,7],[6,5,4],[3,2,1]]
|A|: 96
The Answer should be 0, I may be using the library the wrong way but I can't find many examples so I am stuck