mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Minor fixes
Based on William Rucklidge's review, including a nasty bug in parameter block removal. Change-Id: I3a692e589f600ff560ecae9fa85bb0b76063d403
This commit is contained in:
@@ -51,13 +51,19 @@
|
||||
|
||||
namespace ceres {
|
||||
|
||||
// Trivial wrapper to index linear arrays as matrices, given a fixed column and
|
||||
// row stride. When an array "T* arr" is wrapped by a
|
||||
// "(const) MatrixAdapter<T, row_stride, col_stride> M", the expression "M(i, j)" is
|
||||
// equivalent to "arr[i * row_stride + j * col_stride]".
|
||||
// Conversion functions to and from rotation matrices accept MatrixAdapters to
|
||||
// permit using row-major and column-major layouts, and rotation matrices embedded in
|
||||
// larger matrices (such as a 3x4 projection matrix).
|
||||
// Trivial wrapper to index linear arrays as matrices, given a fixed
|
||||
// column and row stride. When an array "T* array" is wrapped by a
|
||||
//
|
||||
// (const) MatrixAdapter<T, row_stride, col_stride> M"
|
||||
//
|
||||
// the expression M(i, j) is equivalent to
|
||||
//
|
||||
// arrary[i * row_stride + j * col_stride]
|
||||
//
|
||||
// Conversion functions to and from rotation matrices accept
|
||||
// MatrixAdapters to permit using row-major and column-major layouts,
|
||||
// and rotation matrices embedded in larger matrices (such as a 3x4
|
||||
// projection matrix).
|
||||
template <typename T, int row_stride, int col_stride>
|
||||
struct MatrixAdapter;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user