mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 17:10:38 +08:00
Change storage in BlockRandomAccessSparseMatrix
- TripletSparseMatrix in BlockRandomAccessSparseMatrix is replaced with BlockSparseMatrix - BlockSparseMatrix::ToCompressedRowSparseMatrix is performed in a direct sort-less way Change-Id: Ib951fda1b9394050e2c47a9721172c5e3c674801
This commit is contained in:
@@ -80,10 +80,8 @@ class CudaSparseMatrixTest : public ::testing::Test {
|
||||
|
||||
TEST_F(CudaSparseMatrixTest, RightMultiplyAndAccumulate) {
|
||||
std::string message;
|
||||
CompressedRowSparseMatrix A_crs(
|
||||
A_->num_rows(), A_->num_cols(), A_->num_nonzeros());
|
||||
A_->ToCompressedRowSparseMatrix(&A_crs);
|
||||
CudaSparseMatrix A_gpu(&context_, A_crs);
|
||||
auto A_crs = A_->ToCompressedRowSparseMatrix();
|
||||
CudaSparseMatrix A_gpu(&context_, *A_crs);
|
||||
CudaVector x_gpu(&context_, A_gpu.num_cols());
|
||||
CudaVector res_gpu(&context_, A_gpu.num_rows());
|
||||
x_gpu.CopyFromCpu(x_);
|
||||
|
||||
Reference in New Issue
Block a user