Fix null matrix printf bug.

This commit is contained in:
sunwen
2023-04-25 15:07:12 +08:00
parent 8d75783db6
commit 493b84e4d1

View File

@@ -423,12 +423,14 @@ namespace Aurora {
Matrix Matrix::operator^(int times) const { return operatorMxA(&vdPowI, times, *this);}
Matrix operator^( Matrix &&matrix,int times) {
return operatorMxA(&vdPowI, times, std::forward<Matrix&&>(matrix));
}
}
void Matrix::printf() {
if(isNull())
{
::printf("null matrix\n");
return;
}
int k_count = getDimSize(2);
int j_count = getDimSize(1);
int complexstep = 1;