Eigen-Contrib  5.0.1-dev+master
 
Loading...
Searching...
No Matches
Bccb.h
1// This file is part of Eigen, a lightweight C++ template library
2// for linear algebra.
3//
4// This Source Code Form is subject to the terms of the Mozilla
5// Public License v. 2.0. If a copy of the MPL was not distributed
6// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7// SPDX-FileCopyrightText: The Eigen Authors
8// SPDX-License-Identifier: MPL-2.0
9
10// References:
11// [1] P. J. Davis, "Circulant Matrices", Wiley, 1979. Diagonalization of
12// circulant and block circulant matrices by the DFT; the closed-form
13// eigenstructure used by eigenvalues()/eigenvectors(), and the SVD and
14// pseudo-inverse below, follow from it by taking moduli/phases of the
15// eigenvalues.
16// [2] R. H. Chan and X.-Q. Jin, "An Introduction to Iterative Toeplitz
17// Solvers", SIAM, 2007. BCCB matrices are diagonalized by the 2-D DFT
18// F_{n1} (x) F_{n2}; the FFT-based products and solves below, and the use
19// of BCCB operators as preconditioners for two-level Toeplitz (BTTB)
20// systems, follow this reference.
21// [3] G. H. Golub and C. F. Van Loan, "Matrix Computations", 4th ed., Johns
22// Hopkins University Press, 2013, chapter 5.4 (numerical rank conventions).
23// [4] J. J. Dongarra, J. R. Bunch, C. B. Moler and G. W. Stewart, "LINPACK
24// Users' Guide", SIAM, 1979. determinant()'s balanced accumulation follows
25// the convention of its xGEDI routines, which return determinants as a
26// (fraction, exponent) pair to avoid spurious overflow/underflow.
27// [5] P. H. Sterbenz, "Floating-Point Computation", Prentice-Hall, 1974.
28// Scaling by a power of two is exact, the property the balanced
29// accumulation relies on.
30
31#ifndef EIGEN_STRUCTURED_BCCB_H
32#define EIGEN_STRUCTURED_BCCB_H
33
34// IWYU pragma: private
35#include "./InternalHeaderCheck.h"
36
37namespace Eigen {
38
39template <typename Scalar_, int BlockSize_ = Dynamic, int NumBlocks_ = Dynamic>
40class Bccb;
41
42namespace internal {
43
45constexpr int bccb_dim(int a, int b) { return (a == Dynamic || b == Dynamic) ? Dynamic : a * b; }
46
47template <typename Scalar_, int BlockSize_, int NumBlocks_>
48struct traits<Bccb<Scalar_, BlockSize_, NumBlocks_>> {
49 using Scalar = Scalar_;
50 using StorageKind = Dense;
51 using XprKind = MatrixXpr;
52 using StorageIndex = int;
53 static constexpr int RowsAtCompileTime = bccb_dim(BlockSize_, NumBlocks_);
54 static constexpr int ColsAtCompileTime = RowsAtCompileTime;
55 static constexpr int MaxRowsAtCompileTime = RowsAtCompileTime;
56 static constexpr int MaxColsAtCompileTime = RowsAtCompileTime;
57 // Deliberately no NestByRefBit: transpose(), conjugate() and adjoint() return
58 // owning temporaries, so Product must nest the operator by value for a
59 // delayed-evaluated product expression to keep its left factor alive. The copy
60 // is O(N), negligible against the O(N log N) product evaluation.
61 static constexpr unsigned int Flags = 0;
62};
63
64template <typename Scalar_, int BlockSize_, int NumBlocks_>
65struct evaluator_traits<Bccb<Scalar_, BlockSize_, NumBlocks_>> {
66 using Kind = IndexBased;
67 using Shape = StructuredShape;
68};
69
70} // namespace internal
71
129template <typename Scalar_, int BlockSize_, int NumBlocks_>
130class Bccb : public EigenBase<Bccb<Scalar_, BlockSize_, NumBlocks_>> {
131 enum DenseAssignment { SetAssignment, AddAssignment, SubAssignment };
132
133 public:
134 using Scalar = Scalar_;
135 using RealScalar = typename NumTraits<Scalar>::Real;
136 using StorageIndex = int;
137 using Complex = std::complex<RealScalar>;
138 // The two-level structure keys on the *column-major* flattening of the n2 x n1
139 // generating array and symbol (entry (k2, k1) is flat index k1*n2 + k2), so
140 // every internal 2-D type is pinned to ColMajor explicitly: the semantics must
141 // not change under EIGEN_DEFAULT_TO_ROW_MAJOR. The single-row special case
142 // only satisfies Eigen's rule that 1 x n matrices be row-major; with one row
143 // the two orders coincide.
144 using GeneratorType =
145 Matrix<Scalar, BlockSize_, NumBlocks_, (BlockSize_ == 1 && NumBlocks_ != 1) ? int(RowMajor) : int(ColMajor)>;
147 using ComplexVector = Matrix<Complex, Dynamic, 1>;
148 using RealVector = Matrix<RealScalar, Dynamic, 1>;
151
152 static constexpr int RowsAtCompileTime = internal::bccb_dim(BlockSize_, NumBlocks_);
153 static constexpr int ColsAtCompileTime = RowsAtCompileTime;
154 static constexpr int MaxRowsAtCompileTime = RowsAtCompileTime;
155 static constexpr int MaxColsAtCompileTime = RowsAtCompileTime;
156 static constexpr int SizeAtCompileTime = internal::size_at_compile_time(RowsAtCompileTime, ColsAtCompileTime);
157 static constexpr int MaxSizeAtCompileTime = SizeAtCompileTime;
158 static constexpr bool IsRowMajor = false;
159 // Deliberately no IsVectorAtCompileTime: Ref<const Bccb>'s default StrideType
160 // argument reads it, so its absence makes internal::is_ref_compatible SFINAE to
161 // false and keeps the iterative solvers on their matrix-free path.
162
170 template <typename Derived>
171 explicit Bccb(const MatrixBase<Derived>& generator) : m_g(generator) {
172 EIGEN_INTERNAL_ASSERT_NONEMPTY_MSG(m_g, "Bccb generator must be non-empty");
173 if (m_g.size() > internal::structured_direct_threshold()) {
174 m_symbol = computeSymbol();
175 m_prodSymbol = computeProdSymbol(m_g);
176 }
177 }
178
179 EIGEN_DEVICE_FUNC Index rows() const { return m_g.size(); }
180 EIGEN_DEVICE_FUNC Index cols() const { return m_g.size(); }
181
183 Index blockSize() const { return m_g.rows(); }
185 Index numBlocks() const { return m_g.cols(); }
187 const GeneratorType& generator() const { return m_g; }
188
194 ComplexArray symbol() const { return m_symbol.size() > 0 ? m_symbol : computeSymbol(); }
195
197 Scalar coeff(Index row, Index col) const {
198 const Index n2 = blockSize();
199 Index k2 = row % n2 - col % n2;
200 if (k2 < 0) k2 += n2;
201 Index k1 = row / n2 - col / n2;
202 if (k1 < 0) k1 += numBlocks();
203 return m_g.coeff(k2, k1);
204 }
205
212 Bccb transpose() const { return Bccb(reverse2(m_g), reverse2(m_symbol), reverse2(m_prodSymbol)); }
213
217 Bccb conjugate() const {
218 return Bccb(m_g.conjugate(), reverse2(m_symbol).conjugate(), reverse2(m_prodSymbol).conjugate());
219 }
220
225 Bccb adjoint() const { return Bccb(reverse2(m_g).conjugate(), m_symbol.conjugate(), m_prodSymbol.conjugate()); }
226
235 template <typename Rhs>
237 Rhs::ColsAtCompileTime>
238 solve(const MatrixBase<Rhs>& b) const {
240 EIGEN_INTERNAL_ASSERT_SOLVER_RHS_MSG(*this, b, false, "right-hand side has the wrong number of rows");
241 const Index N = rows();
242 const ComplexArray s = symbol();
243 const RealArray mods = s.cwiseAbs();
244 const ComplexArray sinv = internal::structured_pinv_symbol(s, mods, internal::structured_rank_threshold(s, mods));
246 applySymbol(x, sinv, b.derived(), ResultScalar(1), /*accumulate=*/false);
247 return x;
248 }
249
256 Index rank() const {
257 const ComplexArray s = symbol();
258 const RealArray mods = s.cwiseAbs();
259 return (!(mods.array() < internal::structured_rank_threshold(s, mods))).count(); // NaN entries count as non-zero
260 }
261
266 Bccb inverse() const {
267 ComplexArray sinv = symbol().cwiseInverse();
268 const GeneratorType ginv = generatorFromSymbol(sinv);
269 const bool cache = rows() > internal::structured_direct_threshold();
270 return Bccb(ginv, cache ? sinv : ComplexArray(), cache ? computeProdSymbol(ginv) : ComplexArray());
271 }
272
281 Scalar determinant() const {
282 const ComplexArray s = symbol();
283 Complex det(1);
284 Index exponent = 0;
285 for (Index k1 = 0; k1 < s.cols(); ++k1)
286 for (Index k2 = 0; k2 < s.rows(); ++k2)
287 det = internal::balance_exponent(Complex(det * internal::balance_exponent(s(k2, k1), exponent)), exponent);
288 return toScalar(internal::apply_exponent(det, exponent), std::is_same<RealScalar, Scalar>());
289 }
290
296 ComplexVector eigenvalues() const { return symbol().reshaped(); }
297
302 ComplexMatrix eigenvectors() const {
303 const Index n2 = blockSize(), n1 = numBlocks(), N = rows();
304 ComplexMatrix F(N, N);
305 for (Index f1 = 0; f1 < n1; ++f1)
306 for (Index f2 = 0; f2 < n2; ++f2) fourierColumn(F, f1, f2, f1 * n2 + f2);
307 return F;
308 }
309
313 RealVector singularValues() const {
314 const ComplexVector s = eigenvalues();
315 const RealVector mods = s.cwiseAbs();
316 const std::vector<Index> perm = internal::structured_svd_permutation(mods);
317 RealVector sv(s.size());
318 for (Index t = 0; t < s.size(); ++t) sv[t] = mods[perm[t]];
319 return sv;
320 }
321
325 ComplexMatrix matrixU() const {
326 const Index n2 = blockSize(), N = rows();
327 const ComplexVector s = eigenvalues();
328 const RealVector mods = s.cwiseAbs();
329 const std::vector<Index> perm = internal::structured_svd_permutation(mods);
330 ComplexMatrix U(N, N);
331 for (Index t = 0; t < N; ++t) {
332 fourierColumn(U, perm[t] / n2, perm[t] % n2, t);
333 const RealScalar a = mods[perm[t]];
334 if (a > RealScalar(0)) U.col(t) *= s[perm[t]] / a;
335 }
336 return U;
337 }
338
342 ComplexMatrix matrixV() const {
343 const Index n2 = blockSize(), N = rows();
344 const ComplexVector s = eigenvalues();
345 const std::vector<Index> perm = internal::structured_svd_permutation(RealVector(s.cwiseAbs()));
346 ComplexMatrix V(N, N);
347 for (Index t = 0; t < N; ++t) fourierColumn(V, perm[t] / n2, perm[t] % n2, t);
348 return V;
349 }
350
355 template <typename Dest>
356 void evalTo(Dest& dst) const {
357 assignTo<SetAssignment>(dst);
358 }
359
361 template <typename Dest>
362 void addTo(Dest& dst) const {
363 assignTo<AddAssignment>(dst);
364 }
365
367 template <typename Dest>
368 void subTo(Dest& dst) const {
369 assignTo<SubAssignment>(dst);
370 }
371
377 template <typename Rhs>
379 return Product<Bccb, Rhs>(*this, x.derived());
380 }
381
385 template <typename Dest, typename Rhs, typename ProductScalar>
386 void addProduct(Dest& dst, const Rhs& rhs, const ProductScalar& alpha) const {
387 const Index N = rows();
388 EIGEN_INTERNAL_ASSERT_PRODUCT_SHAPE_MSG(*this, rhs, "invalid product: dimensions do not match");
389 if (N <= internal::structured_direct_threshold()) {
390 directProduct(dst, rhs, alpha);
391 return;
392 }
393 // Products use the padded embedding symbol when a block dimension is not
394 // 5-smooth (see computeProdSymbol()); the exact-size transform of such a
395 // dimension runs through kissfft's quadratic generic butterfly.
396 const ComplexArray& s = m_prodSymbol.size() > 0 ? m_prodSymbol : m_symbol;
397 applySymbol(dst, s, rhs, alpha, /*accumulate=*/true);
398 }
399
400 private:
403 template <DenseAssignment Assignment, typename Dest>
404 void assignTo(Dest& dst) const {
405 const Index n2 = blockSize(), n1 = numBlocks();
406 for (Index c1 = 0; c1 < n1; ++c1)
407 for (Index j2 = 0; j2 < n2; ++j2) {
408 auto col = dst.col(c1 * n2 + j2);
409 for (Index b1 = 0; b1 < n1; ++b1) {
410 Index k1 = b1 - c1;
411 if (k1 < 0) k1 += n1;
412 EIGEN_IF_CONSTEXPR (Assignment == SetAssignment) {
413 col.segment(b1 * n2, j2) = m_g.col(k1).tail(j2);
414 col.segment(b1 * n2 + j2, n2 - j2) = m_g.col(k1).head(n2 - j2);
415 } else EIGEN_IF_CONSTEXPR (Assignment == AddAssignment) {
416 col.segment(b1 * n2, j2) += m_g.col(k1).tail(j2);
417 col.segment(b1 * n2 + j2, n2 - j2) += m_g.col(k1).head(n2 - j2);
418 } else {
419 col.segment(b1 * n2, j2) -= m_g.col(k1).tail(j2);
420 col.segment(b1 * n2 + j2, n2 - j2) -= m_g.col(k1).head(n2 - j2);
421 }
422 }
423 }
424 }
425
432 Bccb(const GeneratorType& g, const ComplexArray& symbol, const ComplexArray& prodSymbol)
433 : m_g(g), m_symbol(symbol), m_prodSymbol(prodSymbol) {}
434
453 ComplexArray computeProdSymbol(const GeneratorType& g) const {
454 const Index n2 = g.rows(), n1 = g.cols();
455 const Index p2 = internal::fft_next_good_size(n2) == n2 ? n2 : internal::fft_next_good_size(2 * n2 - 1);
456 const Index p1 = internal::fft_next_good_size(n1) == n1 ? n1 : internal::fft_next_good_size(2 * n1 - 1);
457 if (p2 == n2 && p1 == n1) return ComplexArray();
458 ComplexArray Ge = ComplexArray::Zero(p2, p1);
459 Ge.topLeftCorner(n2, n1) = g.template cast<Complex>();
460 if (p2 != n2) Ge.bottomLeftCorner(n2 - 1, n1) = g.bottomRows(n2 - 1).template cast<Complex>();
461 if (p1 != n1) Ge.topRightCorner(n2, n1 - 1) = g.rightCols(n1 - 1).template cast<Complex>();
462 if (p2 != n2 && p1 != n1)
463 Ge.bottomRightCorner(n2 - 1, n1 - 1) = g.bottomRightCorner(n2 - 1, n1 - 1).template cast<Complex>();
464 fft2(Ge);
465 return Ge;
466 }
467
473 template <typename Dest, typename Rhs, typename ProductScalar>
474 void directProductColumn(Dest& dst, const Rhs& rhs, Index k, const ProductScalar& alpha) const {
475 const Index N = rows();
476 // A unit alpha must not multiply: even the identity complex scalar (1,0)
477 // pollutes an (Inf,0) value with NaN through the 0*Inf cross term.
478 const bool unitAlpha = alpha == ProductScalar(1);
479 for (Index i = 0; i < N; ++i) {
480 ProductScalar acc(0);
481 for (Index j = 0; j < N; ++j) acc += coeff(i, j) * rhs.coeff(j, k);
482 dst.coeffRef(i, k) += unitAlpha ? acc : ProductScalar(alpha * acc);
483 }
484 }
485
488 template <typename Dest, typename Rhs, typename ProductScalar>
489 void directProduct(Dest& dst, const Rhs& rhs, const ProductScalar& alpha) const {
490 for (Index k = 0; k < rhs.cols(); ++k) directProductColumn(dst, rhs, k, alpha);
491 }
492
502 template <typename Dest, typename Rhs, typename ProductScalar>
503 void applySymbol(Dest& dst, const ComplexArray& s, const Rhs& rhs, const ProductScalar& alpha,
504 bool accumulate) const {
505 const Index n2 = blockSize(), n1 = numBlocks();
506 const Index p2 = s.rows(), p1 = s.cols(); // the symbol's transform grid: (n2, n1) or the padded product grid
507 const bool padded = p2 != n2 || p1 != n1;
508 ComplexVector xc(rows());
509 ComplexArray X(p2, p1), Xn; // Xn: the leading-block extraction of a padded grid
510 for (Index k = 0; k < rhs.cols(); ++k) {
511 // reshaped() defaults to column-major traversal, the flattening the
512 // two-level structure keys on, regardless of EIGEN_DEFAULT_TO_ROW_MAJOR.
513 // Plain objects keep both reshapes linear.
514 xc = rhs.col(k).template cast<Complex>();
515 if (padded) {
516 X.setZero();
517 X.topLeftCorner(n2, n1) = xc.reshaped(n2, n1);
518 } else {
519 X = xc.reshaped(n2, n1);
520 }
521 fft2(X);
522 X.array() *= s.array();
523 ifft2(X);
524 if (padded) Xn = X.topLeftCorner(n2, n1);
525 const auto out = internal::structured_scalar_part_impl<ProductScalar>::run((padded ? Xn : X).reshaped());
526 if (accumulate)
527 dst.col(k) += alpha * out;
528 else
529 dst.col(k) = alpha * out;
530 }
531 }
532
537 template <bool Inverse>
538 void transform2(ComplexArray& X) const {
539 auto&& fft = internal::structured_fft_engine<RealScalar>();
540 const Index n2 = X.rows(), n1 = X.cols();
541 // Both passes share one output buffer (resized by the engine) and one packed
542 // input buffer, allocated at most twice for the whole transform. A column of
543 // the column-major grid is already packed and goes to the engine as is; a row
544 // is strided, and the engine would pack it into a fresh temporary per call.
545 ComplexVector tmp, rowv;
546 if (n2 > 1) {
547 for (Index k1 = 0; k1 < n1; ++k1) {
548 EIGEN_IF_CONSTEXPR (Inverse) {
549 fft.inv(tmp, X.col(k1), n2);
550 } else {
551 fft.fwd(tmp, X.col(k1), n2);
552 }
553 X.col(k1) = tmp;
554 }
555 }
556 if (n1 > 1) {
557 for (Index k2 = 0; k2 < n2; ++k2) {
558 rowv = X.row(k2).transpose();
559 EIGEN_IF_CONSTEXPR (Inverse) {
560 fft.inv(tmp, rowv, n1);
561 } else {
562 fft.fwd(tmp, rowv, n1);
563 }
564 X.row(k2) = tmp.transpose();
565 }
566 }
567 }
568
570 void fft2(ComplexArray& X) const { transform2<false>(X); }
571
573 void ifft2(ComplexArray& X) const { transform2<true>(X); }
574
576 GeneratorType generatorFromSymbol(ComplexArray symbol) const {
577 ifft2(symbol);
578 GeneratorType generator = internal::structured_scalar_part_impl<Scalar>::run(symbol);
579 return generator;
580 }
581
583 ComplexArray computeSymbol() const {
584 ComplexArray s = m_g.template cast<Complex>();
585 fft2(s);
586 return s;
587 }
588
592 template <typename MatType>
593 static MatType reverse2(const MatType& M) {
594 const Index r = M.rows(), c = M.cols();
595 MatType R(r, c);
596 if (M.size() == 0) return R;
597 R(0, 0) = M(0, 0);
598 if (c > 1) R.row(0).tail(c - 1) = M.row(0).tail(c - 1).reverse();
599 if (r > 1) R.col(0).tail(r - 1) = M.col(0).tail(r - 1).reverse();
600 if (r > 1 && c > 1) R.bottomRightCorner(r - 1, c - 1) = M.bottomRightCorner(r - 1, c - 1).reverse();
601 return R;
602 }
603
609 void fourierColumn(ComplexMatrix& F, Index f1, Index f2, Index dstCol) const {
610 const Index n2 = blockSize(), n1 = numBlocks();
611 const RealScalar scale = RealScalar(1) / numext::sqrt(RealScalar(rows()));
612 ComplexVector w2(n2);
613 Index jf = 0; // i2 * f2 mod n2
614 for (Index i2 = 0; i2 < n2; ++i2) {
615 w2[i2] = std::polar(scale, RealScalar(2 * EIGEN_PI) * RealScalar(jf) / RealScalar(n2));
616 jf += f2;
617 if (jf >= n2) jf -= n2;
618 }
619 Index bf = 0; // b1 * f1 mod n1
620 for (Index b1 = 0; b1 < n1; ++b1) {
621 const Complex w1 = std::polar(RealScalar(1), RealScalar(2 * EIGEN_PI) * RealScalar(bf) / RealScalar(n1));
622 F.col(dstCol).segment(b1 * n2, n2) = w1 * w2;
623 bf += f1;
624 if (bf >= n1) bf -= n1;
625 }
626 }
627
629 static Scalar toScalar(const Complex& z, std::true_type /*scalar_is_real*/) { return numext::real(z); }
630 static Scalar toScalar(const Complex& z, std::false_type /*scalar_is_real*/) { return z; }
631
632 GeneratorType m_g;
633 ComplexArray m_symbol;
634 // The padded embedding symbol products use when a block dimension is not
635 // 5-smooth; empty otherwise. See computeProdSymbol().
636 ComplexArray m_prodSymbol;
637};
638
642template <typename Derived>
647
648namespace internal {
649
650template <typename Scalar_, int BlockSize_, int NumBlocks_, typename Rhs, int ProductTag>
651struct generic_product_impl<Bccb<Scalar_, BlockSize_, NumBlocks_>, Rhs, StructuredShape, DenseShape, ProductTag>
652 : structured_product_impl<Bccb<Scalar_, BlockSize_, NumBlocks_>, Rhs> {};
653
654} // namespace internal
655
656#if EIGEN_COMP_CXXVER < 17
657template <typename Scalar_, int BlockSize_, int NumBlocks_>
658constexpr int Bccb<Scalar_, BlockSize_, NumBlocks_>::RowsAtCompileTime;
659template <typename Scalar_, int BlockSize_, int NumBlocks_>
660constexpr int Bccb<Scalar_, BlockSize_, NumBlocks_>::ColsAtCompileTime;
661template <typename Scalar_, int BlockSize_, int NumBlocks_>
662constexpr int Bccb<Scalar_, BlockSize_, NumBlocks_>::MaxRowsAtCompileTime;
663template <typename Scalar_, int BlockSize_, int NumBlocks_>
664constexpr int Bccb<Scalar_, BlockSize_, NumBlocks_>::MaxColsAtCompileTime;
665template <typename Scalar_, int BlockSize_, int NumBlocks_>
666constexpr int Bccb<Scalar_, BlockSize_, NumBlocks_>::SizeAtCompileTime;
667template <typename Scalar_, int BlockSize_, int NumBlocks_>
668constexpr int Bccb<Scalar_, BlockSize_, NumBlocks_>::MaxSizeAtCompileTime;
669template <typename Scalar_, int BlockSize_, int NumBlocks_>
670constexpr bool Bccb<Scalar_, BlockSize_, NumBlocks_>::IsRowMajor;
671#endif
672
673} // namespace Eigen
674
675#endif // EIGEN_STRUCTURED_BCCB_H
A block circulant matrix with circulant blocks (BCCB), the matrix of a two-dimensional circular convo...
Definition Bccb.h:130
ComplexVector eigenvalues() const
Definition Bccb.h:296
ComplexMatrix eigenvectors() const
Definition Bccb.h:302
Index numBlocks() const
Definition Bccb.h:185
Scalar coeff(Index row, Index col) const
Definition Bccb.h:197
Index blockSize() const
Definition Bccb.h:183
Bccb transpose() const
Definition Bccb.h:212
ComplexMatrix matrixU() const
Definition Bccb.h:325
Index rank() const
Definition Bccb.h:256
Product< Bccb, Rhs > operator*(const MatrixBase< Rhs > &x) const
Definition Bccb.h:378
Bccb conjugate() const
Definition Bccb.h:217
Bccb adjoint() const
Definition Bccb.h:225
ComplexMatrix matrixV() const
Definition Bccb.h:342
Bccb(const MatrixBase< Derived > &generator)
Definition Bccb.h:171
const GeneratorType & generator() const
Definition Bccb.h:187
RealVector singularValues() const
Definition Bccb.h:313
Bccb inverse() const
Definition Bccb.h:266
Matrix< typename ScalarBinaryOpTraits< Scalar, typename Rhs::Scalar >::ReturnType, RowsAtCompileTime, Rhs::ColsAtCompileTime > solve(const MatrixBase< Rhs > &b) const
Definition Bccb.h:238
Scalar determinant() const
Definition Bccb.h:281
ComplexArray symbol() const
Definition Bccb.h:194
Bccb< typename Derived::Scalar, Derived::RowsAtCompileTime, Derived::ColsAtCompileTime > makeBccb(const MatrixBase< Derived > &generator)
Definition Bccb.h:643
Namespace containing all symbols from the Eigen library.