1 #ifndef CASM_CORRELATION_HH
2 #define CASM_CORRELATION_HH
4 #include "casm/external/Eigen/Dense"
16 for(
Index i = 0; i < thing.size(); i++) {
18 for(
Index j = 0; j < thing[i].size(); j++) {
19 num_corr += thing[i][j].size();
22 corr = Eigen::VectorXd::Zero(num_corr);
25 template<
class ClustType>
29 for(
Index j = 0; j < tree[i].
size(); j++) {
30 num_corr += tree.
prototype(i, j).clust_basis.size();
33 corr = Eigen::VectorXd::Zero(num_corr);
void match_shape(Correlation &corr, const Array< Array< Array< U > > > &thing)
EigenIndex Index
For long integer indexing:
Eigen::VectorXd Correlation
const ClustType & prototype(Index np, Index no) const
Access prototype of orbit (np, no)
Basic std::vector like container (deprecated)
Index size(Index np) const
Number of orbits in OrbitBranch 'np'.