CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <Tensor.hh>
Public Types | |
typedef Array< Tensor< T > > | X1 |
typedef Array< X1 > | X2 |
typedef Array< X2 > | X3 |
typedef Array< X3 > | X4 |
typedef Array< X4 > | X5 |
typedef Array< X5 > | X6 |
typedef Array< X6 > | X7 |
typedef Array< X7 > | X8 |
typedef Array< X8 > | X9 |
typedef Tensor< T > | value_type |
typedef Index | size_type |
typedef Tensor< T > * | iterator |
typedef const Tensor< T > * | const_iterator |
Public Member Functions | |
double | eci (Index i) const |
double & | eci (Index i) |
void | generate_basis (Index Nrank, const SymGroup &sym_group) |
void | generate_basis (Index Nrank, const SymGroup &sym_group, Index Rep_ID) |
void | generate_basis (Index Nrank, const SymGroup &sym_group, const SymGroupRep &perm_group) |
void | make_orthogonal_to (const TensorBasis &ortho_basis) |
TensorBasis & | apply_sym (const SymOp &op) |
void | normalize () |
void | idealize () |
bool | read (std::istream &stream) |
Index | size () const |
void | swap (Array< Tensor< T > > &RHS) |
Tensor< T > & | at (Index ind) |
const Tensor< T > & | at (Index ind) const |
const Tensor< T > & | operator[] (Index ind) const |
Tensor< T > & | operator[] (Index ind) |
Tensor< T > & | back () |
const Tensor< T > & | back () const |
Tensor< T > const * | begin () const |
Tensor< T > * | begin () |
Tensor< T > const * | cbegin () const |
Tensor< T > const * | end () const |
Tensor< T > * | end () |
Tensor< T > const * | cend () const |
void | push_back (const Tensor< T > &toPush) |
void | pop_back () |
void | remove (Index ind) |
void | clear () |
void | resize (Index new_N) |
void | resize (Index new_N, const Tensor< T > &fill_val) |
void | reserve (Index new_max) |
void | sort (const CompareType &comp) |
void | sort (Array< Index > &ind_order) |
void | sort () |
Array & | append (const Array &new_tail) |
Array & | append_unique (const Array &new_tail) |
void | swap_elem (Index i, Index j) |
Array & | permute (const Array< Index > &perm_array) |
Array & | ipermute (const Array< Index > &perm_array) |
bool | next_permute () |
ReturnArray< Index > | as_perm_inverse () const |
ReturnArray< Index > | as_perm_transform_by (const Array< Index > &trans_perm) const |
const Tensor< T > & | max () const |
const Tensor< T > & | min () const |
ReturnArray< Tensor< T > > | sub_array (Index ind_begin, Index ind_end) const |
Tensor< T > | sum () const |
bool | is_ascending () const |
bool | is_descending () const |
bool | is_constant () const |
bool | is_permute () const |
bool | has_fixed_points () const |
bool | operator== (const Array< Tensor< T > > &RHS) const |
bool | operator!= (const Array< Tensor< T > > &RHS) const |
bool | operator< (const Array< Tensor< T > > &RHS) const |
bool | operator> (const Array< Tensor< T > > &RHS) const |
bool | operator<= (const Array< Tensor< T > > &RHS) const |
bool | operator>= (const Array< Tensor< T > > &RHS) const |
bool | all_in (const Array &superset) const |
Index | coincidence (const Array &superset) const |
Index | incidences (const Tensor< T > &test_elem) const |
Index | find (const Tensor< T > &test_elem) const |
Index | reverse_find (const Tensor< T > &test_elem) const |
Same as find, but starts from the last element of the Array. More... | |
Index | almost_find (const Tensor< T > &test_elem, double tol_val=TOL) const |
Index | almost_reverse_find (const Tensor< T > &test_elem, double tol_val=TOL) const |
Same as almost_find, but start from the last element of the Array. More... | |
bool | contains (const Tensor< T > &test_elem) const |
bool | almost_contains (const Tensor< T > &test_elem, double tol_val=TOL) const |
void | print_column (std::ostream &stream, const std::string &indent="") const |
Static Public Member Functions | |
static ReturnArray< Tensor< T > > | sequence (const Tensor< T > &initial, const Tensor< T > &final) |
static ReturnArray< Tensor< T > > | sequence (const Tensor< T > &initial, const Tensor< T > &increment, const Tensor< T > &final) |
Public Attributes | |
Array< double > | coeffs |
Static Private Member Functions | |
static Index | ARRAY_MIN_EXTRA_SPACE () |
static double | ARRAY_EXTENSION_FACTOR () |
Private Attributes | |
Index | N |
Index | NMax |
Tensor< T > * | Vals |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inherited |
|
inlinestaticprivateinherited |
|
inlinestaticprivateinherited |
|
inherited |
|
inherited |
Given N distinct objects labeled from 0 to N-1, a permutation 'P_permute' that physically permutes the objects (with labels) in terms of their labels, and a permutation 'L_permute' that permutes their labels only, rewrite 'P_permute' in terms of the relabeling induced by 'L_permute' Rearrange 'this' permutation to form an equivalent permutation for any list that has already been permuted by trans_perm. Does not (nearly certain of this) depend on permutation convention
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inherited |
Checks whether any values are equal to their index – only valid for Array<Index>
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
staticinherited |
Returns an array with the sequence (initial, ++initial, ..., final), inclusive requires that operator<() and operator++() are defined on type T
Returns an array with the sequence (initial, ++initial, ..., final), inclusive
|
staticinherited |
Returns an array with the sequence (initial, initial+increment, ..., final?), inclusive if final is in the sequence requires that operator<() and operator+=() are defined on type T
Returns an array with the sequence (initial, initial+increment, ..., final?), inclusive if final is in the sequence
|
inlineinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
Array<double> CASM::TensorBasis< T >::coeffs |
|
privateinherited |
|
privateinherited |
|
privateinherited |