27 for (
int i = 0;
i < w.
cols();
i++) {
28 result.block(0,
i * M, M, M).diagonal().array() =
w(
i);
Matrix< RealScalar, Dynamic, Dynamic > M
Matrix kroneckerProductIdentity(size_t M, const Weights &w)
Function for computing the kronecker product of the 1*N Weight vector w with the MxM identity matrix ...
Compute an interpolating basis.
The matrix class, also used for vectors and row-vectors.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT