28 #ifndef _math_scmat_local_h
29 #define _math_scmat_local_h
31 #include <math/scmat/block.h>
32 #include <math/scmat/matrix.h>
33 #include <math/scmat/abstract.h>
37 class LocalSCMatrixKit;
40 class LocalSymmSCMatrix;
41 class LocalDiagSCMatrix;
70 void assign_p(
const double*);
85 void vprint(
const char* title=0,
104 int compute_offset(
int,
int)
const;
105 void resize(
int,
int);
114 void set_element(
int,
int,
double);
115 void accumulate_element(
int,
int,
double);
122 void assign_column(
SCVector *v,
int i);
124 void accumulate_column(
SCVector *v,
int i);
146 void vprint(
const char* title=0,
167 int compute_offset(
int,
int)
const;
175 void set_element(
int,
int,
double);
176 void accumulate_element(
int,
int,
double);
199 void accumulate_symmetric_outer_product(
SCVector*);
212 void vprint(
const char* title=0,
238 void set_element(
int,
double);
239 void accumulate_element(
int,
double);
251 void vprint(
const char* title=0,
void accumulate_subblock(SCMatrix *, int, int, int, int, int=0, int=0)
Sum m into a subblock of this.
void diagonalize(DiagSCMatrix *, SCMatrix *)
Diagonalize this, placing the eigenvalues in d and the eigenvectors in m.
void element_op(const Ref< SCElementOp > &)
Perform the element operation op on each element of this.
Ref< SCMatrixSubblockIter > local_blocks(SCMatrixSubblockIter::Access)
Returns iterators for the local (rapidly accessible) blocks used in this matrix.
SCMatrix * get_subblock(int, int, int, int)
Return a subblock of this.
void assign_subblock(SCMatrix *, int, int, int, int, int=0, int=0)
Assign m to a subblock of this.
void sigma(const CI< Type, Index > &ci, const mpqc::Vector &h, const Matrix &V, ci::Vector &C, ci::Vector &S)
Computes sigma 1,2,3 contributions.
Definition: sigma.hpp:30
The SCVector class is the abstract base class for double valued vectors.
Definition: abstract.h:97
SCMatrix * get_subblock(int, int, int, int)
Return a subblock of this.
void accumulate(const DiagSCMatrix *)
Sum m into this.
double determ_this()
Return the determinant of this. this is overwritten.
SCMatrix * matrix(const RefSCDimension &, const RefSCDimension &)
Given the dimensions, create matrices or vectors.
void assign_row(SCVector *v, int i)
Assign v to a row of this.
void accumulate_symmetric_sum(SCMatrix *)
Sum into a + a.t()
double invert_this()
Invert this.
double get_element(int) const
Return the value of element i.
SCVector * get_row(int i)
Return a row or column of this.
Local SymmSCMatrix.
Definition: local.h:158
A template class that maintains references counts.
Definition: ref.h:361
void set_element(int, double)
Set element i to val.
SCVector * get_row(int i)
Return a row of this.
The SCMatrixKit abstract class acts as a factory for producing matrices.
Definition: abstract.h:57
void assign_val(double)
Overridden to implement the assign functions.
Ref< SCMatrixSubblockIter > local_blocks(SCMatrixSubblockIter::Access)
Returns iterators for the local (rapidly accessible) blocks used in this vector.
double scalar_product(SCVector *)
Return the scalar obtained by multiplying this on the left and right by v.
Ref< SCMatrixSubblockIter > all_blocks(SCMatrixSubblockIter::Access)
Returns iterators for the all blocks used in this matrix.
void gen_invert_this(double condition_number_threshold=1e8)
Return the generalized inverse of this using SVD decomposition.
double invert_this()
Invert this.
The SymmSCMatrix class is the abstract base class for diagonal double valued matrices.
Definition: abstract.h:551
double determ_this()
Return the determinant of this. this is overwritten.
double invert_this()
Invert this.
void eigensystem(SymmSCMatrix *, DiagSCMatrix *, SCMatrix *)
Solve generalized eigensystem for this with metric s, placing the eigenvalues in d and the eigenvecto...
The RefSCDimension class is a smart pointer to an SCDimension specialization.
Definition: dim.h:152
void assign_subblock(SCMatrix *, int, int, int, int)
Assign m to a subblock of this.
Ref< SCMatrixSubblockIter > all_blocks(SCMatrixSubblockIter::Access)
Returns iterators for the all blocks used in this vector.
double trace()
Return the trace.
void accumulate_row(SCVector *v, int i)
Sum v to a row or column of this.
void assign_val(double)
Overridden to implement to assign members.
void element_op(const Ref< SCElementOp > &)
only applied to the unique elements of this.
int n() const
Return the dimension.
Definition: abstract.h:443
int n() const
Return the dimension.
Definition: abstract.h:598
void accumulate_symmetric_product(SCMatrix *)
Sum into this a * a.t()
void accumulate(const SCMatrix *)
Sum m into this.
void accumulate(const SymmSCMatrix *)
Sum m into this.
Local DiagSCMatrix.
Definition: local.h:224
void element_op(const Ref< SCElementOp > &)
Perform the element operation op on each element of this.
double trace()
Return the trace.
Ref< SCMatrixSubblockIter > local_blocks(SCMatrixSubblockIter::Access)
Returns iterators for the local (rapidly accessible) blocks used in this matrix.
double get_element(int, int) const
Return or modify an element.
Definition: stateout.h:71
int schmidt_orthog_tol(SymmSCMatrix *, double tol, double *res=0)
Schmidt orthogonalize this.
double trace()
Return the trace.
double get_element(int, int) const
Return or modify an element.
double scalar_product(SCVector *)
Return the dot product.
void assign_row(SCVector *v, int i)
Assign v to a row or column of this.
The LocalSCMatrixKit produces matrices that work in a single processor environment.
Definition: local.h:45
The SymmSCMatrix class is the abstract base class for symmetric double valued matrices.
Definition: abstract.h:385
Transform
types of matrix transforms. Only real-valued matrices are assumed.
Definition: abstract.h:205
void transpose_this()
Transpose this.
void element_op(const Ref< SCElementOp > &)
Perform the element operation op on each element of this.
void accumulate_element(int, double)
Add val to element i.
Ref< SCMatrixSubblockIter > all_blocks(SCMatrixSubblockIter::Access)
Returns iterators for the all blocks used in this matrix.
static std::ostream & out0()
Return an ostream that writes from node 0.
double determ_this()
Return the determinant of this. this is overwritten.
The SCMatrix class is the abstract base class for general double valued n by m matrices.
Definition: abstract.h:195
void gen_invert_this(double condition_number_threshold=1e8)
Return the generalized inverse of this using SVD decomposition.
void schmidt_orthog(SymmSCMatrix *, int)
Schmidt orthogonalize this.
void accumulate_subblock(SCMatrix *, int, int, int, int)
Sum m into a subblock of this.
Vector class derived from Eigen::Matrix with additional MPQC integration.
Definition: matrix.hpp:133
Ref< SCMatrixSubblockIter > local_blocks(SCMatrixSubblockIter::Access)
Returns iterators for the local (rapidly accessible) blocks used in this matrix.
void accumulate_outer_product(SCVector *, SCVector *)
Sum into this the products of various vectors or matrices.
void accumulate_row(SCVector *v, int i)
Sum v to a row of this.
Ref< SCMatrixSubblockIter > all_blocks(SCMatrixSubblockIter::Access)
Returns iterators for the all blocks used in this matrix.
Contains all MPQC code up to version 3.
Definition: mpqcin.h:14
double get_element(int) const
Return or modify an element.
void svd_this(SCMatrix *U, DiagSCMatrix *sigma, SCMatrix *V)
Compute the singular value decomposition for this, possibly destroying this.
void accumulate(const SCVector *)
Sum v into this.
Generated at Sun Jan 26 2020 23:24:00 for MPQC
3.0.0-alpha using the documentation package Doxygen
1.8.16.