Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Laurell, Pontus Bengt Johan
dmrgpp
Commits
685c2267
Commit
685c2267
authored
Dec 26, 2019
by
Alvarez, Gonzalo
Browse files
BasisWithOperators templated on BasisType now
parent
2ee60578
Changes
19
Hide whitespace changes
Inline
Side-by-side
src/DmrgDriver.pm
View file @
685c2267
...
...
@@ -68,9 +68,8 @@ sub printInstance
my
(
$counter
,
$target
,
$lanczos
,
$matrixVector
,
$modelHelper
,
$vecWithOffset
,
$complexOrNot
,
$values
)
=
@_
;
my
$sparseMatrix
=
"
SparseMatrixInstance
${counter}
Type
";
my
$ops
=
"
Dmrg::Operators<Dmrg::Basis<
$sparseMatrix
> >
";
my
$basisWith
=
"
Dmrg::BasisWithOperators<
$ops
>
";
my
$basisWithout
=
"
Dmrg::Basis<
$sparseMatrix
>
";
my
$basisWith
=
"
Dmrg::BasisWithOperators<
$basisWithout
,1>
";
my
$basis
=
$basisWithout
;
my
$inputNg
=
"
PsimagLite::InputNg<Dmrg::InputCheck>::Readable
";
my
$geometry
=
"
GeometryInstance
${counter}
Type
";
...
...
src/DmrgDriver0.cpp
View file @
685c2267
...
...
@@ -11,7 +11,7 @@ typedef Dmrg::SuperGeometry<RealType,PsimagLite::InputNg<Dmrg::InputCheck>::Read
typedef
Dmrg
::
MatrixVectorOnTheFly
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance0Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance0Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance0Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance0Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
@@ -35,7 +35,7 @@ typedef Dmrg::SuperGeometry<RealType,PsimagLite::InputNg<Dmrg::InputCheck>::Read
typedef
Dmrg
::
MatrixVectorStored
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance1Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance1Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance1Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance1Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
src/DmrgDriver1.cpp
View file @
685c2267
...
...
@@ -11,7 +11,7 @@ typedef Dmrg::SuperGeometry<RealType,PsimagLite::InputNg<Dmrg::InputCheck>::Read
typedef
Dmrg
::
MatrixVectorKron
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance2Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance2Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance2Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance2Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
@@ -35,7 +35,7 @@ typedef Dmrg::SuperGeometry<RealType,PsimagLite::InputNg<Dmrg::InputCheck>::Read
typedef
Dmrg
::
MatrixVectorOnTheFly
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance3Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance3Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance3Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance3Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
src/DmrgDriver10.cpp
View file @
685c2267
...
...
@@ -11,7 +11,7 @@ typedef Dmrg::SuperGeometry<std::complex<RealType> ,PsimagLite::InputNg<Dmrg::In
typedef
Dmrg
::
MatrixVectorKron
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance20Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance20Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance20Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance20Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
@@ -35,7 +35,7 @@ typedef Dmrg::SuperGeometry<std::complex<RealType> ,PsimagLite::InputNg<Dmrg::In
typedef
Dmrg
::
MatrixVectorOnTheFly
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance21Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance21Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance21Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance21Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
src/DmrgDriver11.cpp
View file @
685c2267
...
...
@@ -11,7 +11,7 @@ typedef Dmrg::SuperGeometry<std::complex<RealType> ,PsimagLite::InputNg<Dmrg::In
typedef
Dmrg
::
MatrixVectorStored
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance22Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance22Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance22Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance22Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
@@ -35,7 +35,7 @@ typedef Dmrg::SuperGeometry<std::complex<RealType> ,PsimagLite::InputNg<Dmrg::In
typedef
Dmrg
::
MatrixVectorKron
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance23Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance23Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance23Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance23Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
src/DmrgDriver2.cpp
View file @
685c2267
...
...
@@ -11,7 +11,7 @@ typedef Dmrg::SuperGeometry<RealType,PsimagLite::InputNg<Dmrg::InputCheck>::Read
typedef
Dmrg
::
MatrixVectorStored
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance4Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance4Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance4Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance4Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
@@ -35,7 +35,7 @@ typedef Dmrg::SuperGeometry<RealType,PsimagLite::InputNg<Dmrg::InputCheck>::Read
typedef
Dmrg
::
MatrixVectorKron
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance5Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance5Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance5Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance5Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
src/DmrgDriver3.cpp
View file @
685c2267
...
...
@@ -11,7 +11,7 @@ typedef Dmrg::SuperGeometry<RealType,PsimagLite::InputNg<Dmrg::InputCheck>::Read
typedef
Dmrg
::
MatrixVectorOnTheFly
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance6Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance6Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance6Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance6Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
@@ -35,7 +35,7 @@ typedef Dmrg::SuperGeometry<RealType,PsimagLite::InputNg<Dmrg::InputCheck>::Read
typedef
Dmrg
::
MatrixVectorStored
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance7Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance7Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance7Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance7Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
src/DmrgDriver4.cpp
View file @
685c2267
...
...
@@ -11,7 +11,7 @@ typedef Dmrg::SuperGeometry<RealType,PsimagLite::InputNg<Dmrg::InputCheck>::Read
typedef
Dmrg
::
MatrixVectorKron
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance8Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance8Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance8Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance8Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
@@ -35,7 +35,7 @@ typedef Dmrg::SuperGeometry<RealType,PsimagLite::InputNg<Dmrg::InputCheck>::Read
typedef
Dmrg
::
MatrixVectorOnTheFly
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance9Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance9Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance9Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance9Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
src/DmrgDriver5.cpp
View file @
685c2267
...
...
@@ -11,7 +11,7 @@ typedef Dmrg::SuperGeometry<RealType,PsimagLite::InputNg<Dmrg::InputCheck>::Read
typedef
Dmrg
::
MatrixVectorStored
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance10Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance10Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance10Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance10Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
@@ -35,7 +35,7 @@ typedef Dmrg::SuperGeometry<RealType,PsimagLite::InputNg<Dmrg::InputCheck>::Read
typedef
Dmrg
::
MatrixVectorKron
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance11Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance11Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance11Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance11Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
src/DmrgDriver6.cpp
View file @
685c2267
...
...
@@ -11,7 +11,7 @@ typedef Dmrg::SuperGeometry<std::complex<RealType> ,PsimagLite::InputNg<Dmrg::In
typedef
Dmrg
::
MatrixVectorOnTheFly
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance12Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance12Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance12Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance12Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
@@ -35,7 +35,7 @@ typedef Dmrg::SuperGeometry<std::complex<RealType> ,PsimagLite::InputNg<Dmrg::In
typedef
Dmrg
::
MatrixVectorStored
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance13Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance13Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance13Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance13Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
src/DmrgDriver7.cpp
View file @
685c2267
...
...
@@ -11,7 +11,7 @@ typedef Dmrg::SuperGeometry<std::complex<RealType> ,PsimagLite::InputNg<Dmrg::In
typedef
Dmrg
::
MatrixVectorKron
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance14Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance14Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance14Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance14Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
@@ -35,7 +35,7 @@ typedef Dmrg::SuperGeometry<std::complex<RealType> ,PsimagLite::InputNg<Dmrg::In
typedef
Dmrg
::
MatrixVectorOnTheFly
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance15Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance15Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance15Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance15Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
src/DmrgDriver8.cpp
View file @
685c2267
...
...
@@ -11,7 +11,7 @@ typedef Dmrg::SuperGeometry<std::complex<RealType> ,PsimagLite::InputNg<Dmrg::In
typedef
Dmrg
::
MatrixVectorStored
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance16Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance16Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance16Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance16Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
@@ -35,7 +35,7 @@ typedef Dmrg::SuperGeometry<std::complex<RealType> ,PsimagLite::InputNg<Dmrg::In
typedef
Dmrg
::
MatrixVectorKron
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance17Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance17Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance17Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance17Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
src/DmrgDriver9.cpp
View file @
685c2267
...
...
@@ -11,7 +11,7 @@ typedef Dmrg::SuperGeometry<std::complex<RealType> ,PsimagLite::InputNg<Dmrg::In
typedef
Dmrg
::
MatrixVectorOnTheFly
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance18Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance18Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance18Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance18Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
@@ -35,7 +35,7 @@ typedef Dmrg::SuperGeometry<std::complex<RealType> ,PsimagLite::InputNg<Dmrg::In
typedef
Dmrg
::
MatrixVectorStored
<
Dmrg
::
ModelBase
<
Dmrg
::
ModelHelperLocal
<
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Operators
<
Dmrg
::
Basis
<
SparseMatrixInstance19Type
>
>
>
,
Dmrg
::
Basis
<
SparseMatrixInstance19Type
>
>
Dmrg
::
LeftRightSuper
<
Dmrg
::
BasisWithOperators
<
Dmrg
::
Basis
<
SparseMatrixInstance19Type
>
,
1
>
,
Dmrg
::
Basis
<
SparseMatrixInstance19Type
>
>
>
,
ParametersDmrgSolverType
,
InputNgType
::
Readable
,
...
...
src/Engine/BasisWithOperators.h
View file @
685c2267
...
...
@@ -79,6 +79,7 @@ DISCLOSED WOULD NOT INFRINGE PRIVATELY OWNED RIGHTS.
#include "ApplyFactors.h"
#include "Basis.h"
#include "Operators.h"
namespace
Dmrg
{
...
...
@@ -112,22 +113,22 @@ namespace Dmrg {
local operators in a Hilbert space basis. These include functions to create
an outer product of two given Hilbert spaces, to transform a basis, to truncate a basis, etc.
*/
template
<
typename
Operator
sType_
>
class
BasisWithOperators
:
public
OperatorsType_
::
BasisType
{
template
<
typename
Basi
sType_
,
int
>
class
BasisWithOperators
:
public
BasisType
_
{
public:
typedef
PsimagLite
::
Vector
<
SizeType
>::
Type
VectorIntegerType
;
typedef
typename
OperatorsType_
::
BasisType
BaseType
;
typedef
BasisType
_
BaseType
;
typedef
std
::
pair
<
SizeType
,
SizeType
>
PairType
;
typedef
typename
BaseType
::
RealType
RealType
;
typedef
OperatorsType_
OperatorsType
;
typedef
Operators
<
Basis
Type_
>
OperatorsType
;
typedef
typename
OperatorsType
::
PairSizeSizeType
PairSizeSizeType
;
typedef
typename
OperatorsType
::
OperatorType
OperatorType
;
typedef
typename
OperatorsType
::
BasisType
BasisType
;
typedef
typename
BasisType
::
BlockType
VectorSizeType
;
typedef
typename
OperatorType
::
StorageType
OperatorStorageType
;
typedef
BasisWithOperators
<
Operator
sType
>
ThisType
;
typedef
BasisWithOperators
<
Basi
sType
_
,
1
>
ThisType
;
typedef
typename
BasisType
::
FactorsType
FactorsType
;
typedef
typename
OperatorStorageType
::
value_type
ComplexOrRealType
;
typedef
typename
PsimagLite
::
CrsMatrix
<
ComplexOrRealType
>
SparseMatrixType
;
...
...
@@ -263,7 +264,7 @@ public:
SizeType
superOperatorIndices
(
const
VectorSizeType
&
sites
,
SizeType
sigma
)
const
{
return
operators_
.
superOperatorIndices
(
sites
,
sigma
);
return
0
;
//
operators_.superOperatorIndices(sites, sigma);
}
SizeType
operatorsPerSite
(
SizeType
i
)
const
...
...
@@ -394,24 +395,8 @@ private:
PsimagLite
::
Vector
<
SizeType
>::
Type
operatorsPerSite_
;
};
// class BasisWithOperators
template
<
typename
OperatorsType
>
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
BasisWithOperators
<
OperatorsType
>&
bwo
)
{
throw
PsimagLite
::
RuntimeError
(
"Unimplemented <<
\n
"
);
return
os
;
}
template
<
typename
OperatorsType
>
std
::
istream
&
operator
>>
(
std
::
istream
&
is
,
BasisWithOperators
<
OperatorsType
>&
bwo
)
{
throw
PsimagLite
::
RuntimeError
(
"Unimplemented >>
\n
"
);
return
is
;
}
template
<
typename
OperatorsType
>
struct
IsBasisType
<
BasisWithOperators
<
OperatorsType
>
>
{
template
<
typename
T
,
int
x
>
struct
IsBasisType
<
BasisWithOperators
<
T
,
x
>
>
{
enum
{
True
=
true
};
};
}
// namespace Dmrg
...
...
src/ObserveDriver0.cpp
View file @
685c2267
...
...
@@ -17,13 +17,11 @@ InputNgType::Readable,
ProgramGlobals
>
Geometry2Type
;
typedef
Basis
<
MySparseMatrixReal
>
Basis1Type
;
typedef
Operators
<
Basis1Type
>
Operators1Type
;
typedef
BasisWithOperators
<
Operators1Type
>
BasisWithOperators1Type
;
typedef
BasisWithOperators
<
Basis1Type
,
1
>
BasisWithOperators1Type
;
typedef
LeftRightSuper
<
BasisWithOperators1Type
,
Basis1Type
>
LeftRightSuper1Type
;
typedef
Basis
<
MySparseMatrixComplex
>
Basis2Type
;
typedef
Operators
<
Basis2Type
>
Operators2Type
;
typedef
BasisWithOperators
<
Operators2Type
>
BasisWithOperators2Type
;
typedef
BasisWithOperators
<
Basis2Type
,
1
>
BasisWithOperators2Type
;
typedef
LeftRightSuper
<
BasisWithOperators2Type
,
Basis2Type
>
LeftRightSuper2Type
;
typedef
ModelHelperLocal
<
LeftRightSuper1Type
>
ModelHelper1Type
;
...
...
src/ObserveDriver1.cpp
View file @
685c2267
...
...
@@ -17,13 +17,11 @@ InputNgType::Readable,
ProgramGlobals
>
Geometry2Type
;
typedef
Basis
<
MySparseMatrixReal
>
Basis1Type
;
typedef
Operators
<
Basis1Type
>
Operators1Type
;
typedef
BasisWithOperators
<
Operators1Type
>
BasisWithOperators1Type
;
typedef
BasisWithOperators
<
Basis1Type
,
1
>
BasisWithOperators1Type
;
typedef
LeftRightSuper
<
BasisWithOperators1Type
,
Basis1Type
>
LeftRightSuper1Type
;
typedef
Basis
<
MySparseMatrixComplex
>
Basis2Type
;
typedef
Operators
<
Basis2Type
>
Operators2Type
;
typedef
BasisWithOperators
<
Operators2Type
>
BasisWithOperators2Type
;
typedef
BasisWithOperators
<
Basis2Type
,
1
>
BasisWithOperators2Type
;
typedef
LeftRightSuper
<
BasisWithOperators2Type
,
Basis2Type
>
LeftRightSuper2Type
;
}
src/ObserveDriver2.cpp
View file @
685c2267
...
...
@@ -12,8 +12,7 @@ ProgramGlobals> Geometry1Type;
typedef
Basis
<
MySparseMatrixComplex
>
Basis2Type
;
typedef
Operators
<
Basis2Type
>
Operators2Type
;
typedef
BasisWithOperators
<
Operators2Type
>
BasisWithOperators2Type
;
typedef
BasisWithOperators
<
Basis2Type
,
1
>
BasisWithOperators2Type
;
typedef
LeftRightSuper
<
BasisWithOperators2Type
,
Basis2Type
>
LeftRightSuper2Type
;
typedef
ModelHelperLocal
<
LeftRightSuper2Type
>
ModelHelper2Type
;
...
...
src/dmrg.cpp
View file @
685c2267
...
...
@@ -98,8 +98,7 @@ void mainLoop1(SuperGeometryType& geometry,
const
OperatorOptions
&
opOptions
)
{
typedef
Basis
<
MySparseMatrix
>
BasisType
;
typedef
Operators
<
BasisType
>
OperatorsType
;
typedef
BasisWithOperators
<
OperatorsType
>
BasisWithOperatorsType
;
typedef
BasisWithOperators
<
BasisType
,
1
>
BasisWithOperatorsType
;
typedef
LeftRightSuper
<
BasisWithOperatorsType
,
BasisType
>
LeftRightSuperType
;
typedef
ModelHelperTemplate
<
LeftRightSuperType
>
ModelHelperType
;
typedef
ModelBase
<
ModelHelperType
,
...
...
src/observe.cpp
View file @
685c2267
...
...
@@ -47,8 +47,7 @@ void mainLoop1(GeometryType& geometry,
const
PsimagLite
::
String
&
list
)
{
typedef
Basis
<
MySparseMatrix
>
BasisType
;
typedef
Operators
<
BasisType
>
OperatorsType
;
typedef
BasisWithOperators
<
OperatorsType
>
BasisWithOperatorsType
;
typedef
BasisWithOperators
<
BasisType
,
1
>
BasisWithOperatorsType
;
typedef
LeftRightSuper
<
BasisWithOperatorsType
,
BasisType
>
LeftRightSuperType
;
typedef
ModelHelperTemplate
<
LeftRightSuperType
>
ModelHelperType
;
typedef
typename
MySparseMatrix
::
value_type
ComplexOrRealType
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment