-
Notifications
You must be signed in to change notification settings - Fork 757
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/windows-tests
- Loading branch information
Showing
28 changed files
with
1,309 additions
and
706 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* ---------------------------------------------------------------------------- | ||
* GTSAM Copyright 2010, Georgia Tech Research Corporation, | ||
* Atlanta, Georgia 30332-0415 | ||
* All Rights Reserved | ||
* Authors: Frank Dellaert, et al. (see THANKS for the full author list) | ||
* See LICENSE for the license information | ||
* -------------------------------------------------------------------------- */ | ||
|
||
/** | ||
* @file Basis.cpp | ||
* @brief Compute an interpolating basis | ||
* @author Varun Agrawal | ||
* @date June 20, 2023 | ||
*/ | ||
|
||
#include <gtsam/basis/Basis.h> | ||
|
||
namespace gtsam { | ||
|
||
Matrix kroneckerProductIdentity(size_t M, const Weights& w) { | ||
Matrix result(M, w.cols() * M); | ||
result.setZero(); | ||
|
||
for (int i = 0; i < w.cols(); i++) { | ||
result.block(0, i * M, M, M).diagonal().array() = w(i); | ||
} | ||
return result; | ||
} | ||
|
||
} // namespace gtsam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.