Add Check and Scale(unfinished).
This commit is contained in:
@@ -5,11 +5,13 @@
|
||||
#include "Function1D.h"
|
||||
#include "MatlabReader.h"
|
||||
#include "Matrix.h"
|
||||
#include "Sparse.h"
|
||||
#include "config/config.h"
|
||||
#include "transmissionReconstruction/reconstruction/buildMatrix/DGradient.h"
|
||||
#include "transmissionReconstruction/reconstruction/buildMatrix/FMM.h"
|
||||
#include "transmissionReconstruction/reconstruction/buildMatrix/buildMatrix.h"
|
||||
#include "transmissionReconstruction/reconstruction/reconstruction.h"
|
||||
#include "transmissionReconstruction/reconstruction/solvingEquationSystem/TVAL/TVAL.h"
|
||||
|
||||
|
||||
|
||||
@@ -37,6 +39,18 @@ protected:
|
||||
}
|
||||
};
|
||||
|
||||
TEST_F(Reconstruction_Test, checkAndScale) {
|
||||
MatlabReader m("/home/sun/testData/buildMatrix.mat");
|
||||
auto i = m.read("i1");
|
||||
auto j = m.read("j1");
|
||||
auto s = m.read("s1");
|
||||
MatlabReader m2("/home/sun/testData/checkAndScale.mat");
|
||||
auto b = m2.read("b");
|
||||
|
||||
Aurora::Sparse sparse(i,j,s,709613,1196032);
|
||||
Recon::checkAndScale(sparse,b,1196032);
|
||||
}
|
||||
|
||||
TEST_F(Reconstruction_Test, calculateMinimalMaximalTransducerPositions) {
|
||||
auto senderList = Aurora::Matrix::fromRawData(new double[6]{1, 2, 3, 1, 2, 4}, 3, 2);
|
||||
auto receiverList = Aurora::Matrix::fromRawData(new double[6]{1, 8, 3, 1, 2, 1}, 3, 2);
|
||||
|
||||
Reference in New Issue
Block a user