VerticalBlockMatrix.cpp
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2 
3  * GTSAM Copyright 2010, Georgia Tech Research Corporation,
4  * Atlanta, Georgia 30332-0415
5  * All Rights Reserved
6  * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7 
8  * See LICENSE for the license information
9 
10  * -------------------------------------------------------------------------- */
11 
21 
22 namespace gtsam {
23 
24 /* ************************************************************************* */
26  const VerticalBlockMatrix& other) {
28  result.variableColOffsets_.resize(other.nBlocks() + 1);
29  for (size_t i = 0; i < result.variableColOffsets_.size(); ++i)
30  result.variableColOffsets_[i] = other.variableColOffsets_[other.blockStart_
31  + i] - other.variableColOffsets_[other.blockStart_];
32  result.matrix_.resize(other.rows(), result.variableColOffsets_.back());
33  result.rowEnd_ = other.rows();
34  result.assertInvariants();
35  return result;
36 }
37 
38 /* ************************************************************************* */
40  const SymmetricBlockMatrix& other, DenseIndex height) {
42  result.variableColOffsets_.resize(other.nBlocks() + 1);
43  for (size_t i = 0; i < result.variableColOffsets_.size(); ++i)
44  result.variableColOffsets_[i] = other.variableColOffsets_[other.blockStart_
45  + i] - other.variableColOffsets_[other.blockStart_];
46  result.matrix_.resize(height, result.variableColOffsets_.back());
47  result.rowEnd_ = height;
48  result.assertInvariants();
49  return result;
50 }
51 
52 }
gtsam::VerticalBlockMatrix::LikeActiveViewOf
static VerticalBlockMatrix LikeActiveViewOf(const VerticalBlockMatrix &rhs)
Definition: VerticalBlockMatrix.cpp:25
result
Values result
Definition: OdometryOptimize.cpp:8
gtsam::VerticalBlockMatrix
Definition: VerticalBlockMatrix.h:42
VerticalBlockMatrix.h
A matrix with column blocks of pre-defined sizes. Used in JacobianFactor and GaussianConditional.
SymmetricBlockMatrix.h
Access to matrices via blocks of pre-defined sizes. Used in GaussianFactor and GaussianConditional.
gtsam
traits
Definition: SFMdata.h:40
gtsam::DenseIndex
ptrdiff_t DenseIndex
The index type for Eigen objects.
Definition: types.h:103
gtsam::SymmetricBlockMatrix
Definition: SymmetricBlockMatrix.h:53
i
int i
Definition: BiCGSTAB_step_by_step.cpp:9
pybind_wrapper_test_script.other
other
Definition: pybind_wrapper_test_script.py:42


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:42