Searched refs:tsm_ (Results 1 – 4 of 4) sorted by relevance
65 tsm_.reset(new TripletSparseMatrix(num_cols, num_cols, num_nonzeros)); in BlockRandomAccessDiagonalMatrix()66 tsm_->set_num_nonzeros(num_nonzeros); in BlockRandomAccessDiagonalMatrix()67 int* rows = tsm_->mutable_rows(); in BlockRandomAccessDiagonalMatrix()68 int* cols = tsm_->mutable_cols(); in BlockRandomAccessDiagonalMatrix()69 double* values = tsm_->mutable_values(); in BlockRandomAccessDiagonalMatrix()113 if (tsm_->num_nonzeros()) { in SetZero()114 VectorRef(tsm_->mutable_values(), in SetZero()115 tsm_->num_nonzeros()).setZero(); in SetZero()
79 tsm_.reset(new TripletSparseMatrix(num_cols, num_cols, num_nonzeros)); in BlockRandomAccessSparseMatrix()80 tsm_->set_num_nonzeros(num_nonzeros); in BlockRandomAccessSparseMatrix()81 int* rows = tsm_->mutable_rows(); in BlockRandomAccessSparseMatrix()82 int* cols = tsm_->mutable_cols(); in BlockRandomAccessSparseMatrix()83 double* values = tsm_->mutable_values(); in BlockRandomAccessSparseMatrix()111 DCHECK_LT(rows[pos], tsm_->num_rows()); in BlockRandomAccessSparseMatrix()112 DCHECK_LT(cols[pos], tsm_->num_rows()); in BlockRandomAccessSparseMatrix()151 if (tsm_->num_nonzeros()) { in SetZero()152 VectorRef(tsm_->mutable_values(), in SetZero()153 tsm_->num_nonzeros()).setZero(); in SetZero()
74 virtual int num_rows() const { return tsm_->num_rows(); } in num_rows()75 virtual int num_cols() const { return tsm_->num_cols(); } in num_cols()78 const TripletSparseMatrix* matrix() const { return tsm_.get(); } in matrix()79 TripletSparseMatrix* mutable_matrix() { return tsm_.get(); } in mutable_matrix()87 scoped_ptr<TripletSparseMatrix> tsm_; variable
79 virtual int num_rows() const { return tsm_->num_rows(); } in num_rows()80 virtual int num_cols() const { return tsm_->num_cols(); } in num_cols()83 const TripletSparseMatrix* matrix() const { return tsm_.get(); } in matrix()84 TripletSparseMatrix* mutable_matrix() { return tsm_.get(); } in mutable_matrix()101 scoped_ptr<TripletSparseMatrix> tsm_; variable