4template<
typename Symmetry,
typename Scalar>
14 const Tripod<Symmetry,Matrix<Scalar,Dynamic,Dynamic> > &R_input,
18 :
L(L_input),
R(R_input),
qloc(qloc_input)
42 template<
typename OtherScalar>
49 Bout.
L =
L.template cast<Matrix<OtherScalar,Dynamic,Dynamic> >();
50 Bout.
R =
R.template cast<Matrix<OtherScalar,Dynamic,Dynamic> >();
52 Bout.
Lsq =
Lsq.template cast<Matrix<OtherScalar,Dynamic,Dynamic> >();
53 Bout.
Rsq =
Rsq.template cast<Matrix<OtherScalar,Dynamic,Dynamic> >();
55 for (
size_t g=0; g<
A.size(); ++g)
57 Bout.
A[g].resize(
A[g].size());
63 for (
size_t g=0; g<
A.size(); ++g)
64 for (
size_t l=0; l<
A[g].size(); ++l)
66 Bout.
A[g][l].resize(
A[g][l].size());
68 for (
size_t s=0; s<
qloc[l].size(); ++s)
70 Bout.
A[g][l][s].in =
A[g][l][s].in;
71 Bout.
A[g][l][s].out =
A[g][l][s].out;
72 Bout.
A[g][l][s].dict =
A[g][l][s].dict;
73 Bout.
A[g][l][s].dim =
A[g][l][s].dim;
75 Bout.
A[g][l][s].block.resize(
A[g][l][s].
dim);
76 for (
size_t q=0; q<
A[g][l][s].dim; ++q)
78 Bout.
A[g][l][s].block[q] =
A[g][l][s].block[q].template cast<OtherScalar>();
96 std::array<vector<vector<Biped<Symmetry,MatrixType> > >,3>
A;
98 vector<vector<qarray<Symmetry::Nq> > >
qloc;
size_t dim(const PivotMatrix0< Symmetry, Scalar, MpoScalar > &H)
Matrix< Scalar, Dynamic, Dynamic > MatrixType
std::array< vector< vector< Biped< Symmetry, MatrixType > > >, 3 > A
MpsBoundaries< Symmetry, OtherScalar > cast() const
Tripod< Symmetry, Matrix< Scalar, Dynamic, Dynamic > > Lsq
MpsBoundaries(const Tripod< Symmetry, Matrix< Scalar, Dynamic, Dynamic > > &L_input, const Tripod< Symmetry, Matrix< Scalar, Dynamic, Dynamic > > &R_input, const vector< vector< Biped< Symmetry, MatrixType > > > &AL_input, const vector< vector< Biped< Symmetry, MatrixType > > > &AR_input, const vector< vector< qarray< Symmetry::Nq > > > &qloc_input)
vector< vector< qarray< Symmetry::Nq > > > qloc
void set_open_bc(qarray< Symmetry::Nq > &Qtot)
Tripod< Symmetry, Matrix< Scalar, Dynamic, Dynamic > > L
Tripod< Symmetry, Matrix< Scalar, Dynamic, Dynamic > > R
Tripod< Symmetry, Matrix< Scalar, Dynamic, Dynamic > > Rsq
std::array< qarray< Nq >, 3 > qarray3