CASM
AClustersApproachtoStatisticalMechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
CASM::TensorBasis< T > Class Template Reference

#include <Tensor.hh>

+ Inheritance diagram for CASM::TensorBasis< T >:

Detailed Description

template<class T>
class CASM::TensorBasis< T >

Definition at line 221 of file Tensor.hh.

Public Types

typedef Array< Tensor< T > > X1
 
typedef Array< X1X2
 
typedef Array< X2X3
 
typedef Array< X3X4
 
typedef Array< X4X5
 
typedef Array< X5X6
 
typedef Array< X6X7
 
typedef Array< X7X8
 
typedef Array< X8X9
 
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)
 
TensorBasisapply_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 ()
 
Arrayappend (const Array &new_tail)
 
Arrayappend_unique (const Array &new_tail)
 
void swap_elem (Index i, Index j)
 
Arraypermute (const Array< Index > &perm_array)
 
Arrayipermute (const Array< Index > &perm_array)
 
bool next_permute ()
 
ReturnArray< Indexas_perm_inverse () const
 
ReturnArray< Indexas_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
 Checks whether any values are equal to their index – only valid for Array<Index> More...
 
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)
 Returns an array with the sequence (initial, ++initial, ..., final), inclusive. More...
 
static ReturnArray< Tensor< T > > sequence (const Tensor< T > &initial, const Tensor< T > &increment, const Tensor< T > &final)
 

Public Attributes

Array< double > coeffs
 

Member Typedef Documentation

typedef const Tensor< T > * CASM::Array< Tensor< T > >::const_iterator
inherited

Definition at line 76 of file Array.hh.

typedef Tensor< T > * CASM::Array< Tensor< T > >::iterator
inherited

Definition at line 75 of file Array.hh.

typedef Index CASM::Array< Tensor< T > >::size_type
inherited

Definition at line 74 of file Array.hh.

typedef Tensor< T > CASM::Array< Tensor< T > >::value_type
inherited

Definition at line 73 of file Array.hh.

typedef Array<Tensor< T > > CASM::Array< Tensor< T > >::X1
inherited

Definition at line 63 of file Array.hh.

typedef Array<X1> CASM::Array< Tensor< T > >::X2
inherited

Definition at line 64 of file Array.hh.

typedef Array<X2> CASM::Array< Tensor< T > >::X3
inherited

Definition at line 65 of file Array.hh.

typedef Array<X3> CASM::Array< Tensor< T > >::X4
inherited

Definition at line 66 of file Array.hh.

typedef Array<X4> CASM::Array< Tensor< T > >::X5
inherited

Definition at line 67 of file Array.hh.

typedef Array<X5> CASM::Array< Tensor< T > >::X6
inherited

Definition at line 68 of file Array.hh.

typedef Array<X6> CASM::Array< Tensor< T > >::X7
inherited

Definition at line 69 of file Array.hh.

typedef Array<X7> CASM::Array< Tensor< T > >::X8
inherited

Definition at line 70 of file Array.hh.

typedef Array<X8> CASM::Array< Tensor< T > >::X9
inherited

Definition at line 71 of file Array.hh.

Member Function Documentation

bool CASM::Array< Tensor< T > >::all_in ( const Array< Tensor< T > > &  superset) const
inherited
bool CASM::Array< Tensor< T > >::almost_contains ( const Tensor< T > &  test_elem,
double  tol_val = TOL 
) const
inlineinherited

Definition at line 284 of file Array.hh.

Index CASM::Array< Tensor< T > >::almost_find ( const Tensor< T > &  test_elem,
double  tol_val = TOL 
) const
inherited
Index CASM::Array< Tensor< T > >::almost_reverse_find ( const Tensor< T > &  test_elem,
double  tol_val = TOL 
) const
inherited

Same as almost_find, but start from the last element of the Array.

Array& CASM::Array< Tensor< T > >::append ( const Array< Tensor< T > > &  new_tail)
inherited
Array& CASM::Array< Tensor< T > >::append_unique ( const Array< Tensor< T > > &  new_tail)
inherited
ReturnArray<Index> CASM::Array< Tensor< T > >::as_perm_inverse ( ) const
inherited

Construct permutation that undoes the permutation performed by 'this' Inverse operation is calculated the same, regardless of permutation convention

ReturnArray<Index> CASM::Array< Tensor< T > >::as_perm_transform_by ( const Array< Index > &  trans_perm) const
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

Tensor< T > & CASM::Array< Tensor< T > >::at ( Index  ind)
inlineinherited

Definition at line 157 of file Array.hh.

const Tensor< T > & CASM::Array< Tensor< T > >::at ( Index  ind) const
inlineinherited

Definition at line 162 of file Array.hh.

Tensor< T > & CASM::Array< Tensor< T > >::back ( )
inlineinherited

Definition at line 177 of file Array.hh.

const Tensor< T > & CASM::Array< Tensor< T > >::back ( ) const
inlineinherited

Definition at line 180 of file Array.hh.

Tensor< T > const* CASM::Array< Tensor< T > >::begin ( ) const
inlineinherited

Definition at line 185 of file Array.hh.

Tensor< T > * CASM::Array< Tensor< T > >::begin ( )
inlineinherited

Definition at line 192 of file Array.hh.

Tensor< T > const* CASM::Array< Tensor< T > >::cbegin ( ) const
inlineinherited

Definition at line 189 of file Array.hh.

Tensor< T > const* CASM::Array< Tensor< T > >::cend ( ) const
inlineinherited

Definition at line 201 of file Array.hh.

void CASM::Array< Tensor< T > >::clear ( )
inlineinherited

Definition at line 216 of file Array.hh.

Index CASM::Array< Tensor< T > >::coincidence ( const Array< Tensor< T > > &  superset) const
inherited
bool CASM::Array< Tensor< T > >::contains ( const Tensor< T > &  test_elem) const
inlineinherited

Definition at line 281 of file Array.hh.

template<class T>
double CASM::TensorBasis< T >::eci ( Index  i) const
inline

Definition at line 229 of file Tensor.hh.

template<class T>
double& CASM::TensorBasis< T >::eci ( Index  i)
inline

Definition at line 232 of file Tensor.hh.

Tensor< T > const* CASM::Array< Tensor< T > >::end ( ) const
inlineinherited

Definition at line 197 of file Array.hh.

Tensor< T > * CASM::Array< Tensor< T > >::end ( )
inlineinherited

Definition at line 204 of file Array.hh.

Index CASM::Array< Tensor< T > >::find ( const Tensor< T > &  test_elem) const
inherited
bool CASM::Array< Tensor< T > >::has_fixed_points ( ) const
inherited

Checks whether any values are equal to their index – only valid for Array<Index>

Index CASM::Array< Tensor< T > >::incidences ( const Tensor< T > &  test_elem) const
inherited
Array& CASM::Array< Tensor< T > >::ipermute ( const Array< Index > &  perm_array)
inherited
bool CASM::Array< Tensor< T > >::is_ascending ( ) const
inherited
bool CASM::Array< Tensor< T > >::is_constant ( ) const
inherited
bool CASM::Array< Tensor< T > >::is_descending ( ) const
inherited
bool CASM::Array< Tensor< T > >::is_permute ( ) const
inherited

Checks that Array contains values from 0 to perm_array.size()-1 and that no value is repeated does not depend on definition of permutation convention

const Tensor< T > & CASM::Array< Tensor< T > >::max ( ) const
inherited
const Tensor< T > & CASM::Array< Tensor< T > >::min ( ) const
inherited
bool CASM::Array< Tensor< T > >::next_permute ( )
inherited
bool CASM::Array< Tensor< T > >::operator!= ( const Array< Tensor< T > > &  RHS) const
inlineinherited

Definition at line 260 of file Array.hh.

bool CASM::Array< Tensor< T > >::operator< ( const Array< Tensor< T > > &  RHS) const
inherited
bool CASM::Array< Tensor< T > >::operator<= ( const Array< Tensor< T > > &  RHS) const
inlineinherited

Definition at line 265 of file Array.hh.

bool CASM::Array< Tensor< T > >::operator== ( const Array< Tensor< T > > &  RHS) const
inherited
bool CASM::Array< Tensor< T > >::operator> ( const Array< Tensor< T > > &  RHS) const
inherited
bool CASM::Array< Tensor< T > >::operator>= ( const Array< Tensor< T > > &  RHS) const
inlineinherited

Definition at line 268 of file Array.hh.

const Tensor< T > & CASM::Array< Tensor< T > >::operator[] ( Index  ind) const
inlineinherited

Definition at line 167 of file Array.hh.

Tensor< T > & CASM::Array< Tensor< T > >::operator[] ( Index  ind)
inlineinherited

Definition at line 172 of file Array.hh.

Array& CASM::Array< Tensor< T > >::permute ( const Array< Index > &  perm_array)
inherited
void CASM::Array< Tensor< T > >::pop_back ( )
inlineinherited

Definition at line 212 of file Array.hh.

void CASM::Array< Tensor< T > >::print_column ( std::ostream &  stream,
const std::string &  indent = "" 
) const
inherited
void CASM::Array< Tensor< T > >::push_back ( const Tensor< T > &  toPush)
inherited
void CASM::Array< Tensor< T > >::remove ( Index  ind)
inherited
void CASM::Array< Tensor< T > >::reserve ( Index  new_max)
inherited
void CASM::Array< Tensor< T > >::resize ( Index  new_N)
inherited
void CASM::Array< Tensor< T > >::resize ( Index  new_N,
const Tensor< T > &  fill_val 
)
inherited
Index CASM::Array< Tensor< T > >::reverse_find ( const Tensor< T > &  test_elem) const
inherited

Same as find, but starts from the last element of the Array.

static ReturnArray<Tensor< T > > CASM::Array< Tensor< T > >::sequence ( const Tensor< T > &  initial,
const Tensor< T > &  final 
)
staticinherited

Returns an array with the sequence (initial, ++initial, ..., final), inclusive.

Returns an array with the sequence (initial, ++initial, ..., final), inclusive requires that operator<() and operator++() are defined on type T

static ReturnArray<Tensor< T > > CASM::Array< Tensor< T > >::sequence ( const Tensor< T > &  initial,
const Tensor< T > &  increment,
const Tensor< T > &  final 
)
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

Index CASM::Array< Tensor< T > >::size ( ) const
inlineinherited

Definition at line 145 of file Array.hh.

void CASM::Array< Tensor< T > >::sort ( const CompareType &  comp)
inherited
void CASM::Array< Tensor< T > >::sort ( Array< Index > &  ind_order)
inherited
void CASM::Array< Tensor< T > >::sort ( )
inherited
ReturnArray<Tensor< T > > CASM::Array< Tensor< T > >::sub_array ( Index  ind_begin,
Index  ind_end 
) const
inherited
Tensor< T > CASM::Array< Tensor< T > >::sum ( ) const
inherited
void CASM::Array< Tensor< T > >::swap ( Array< Tensor< T > > &  RHS)
inherited
void CASM::Array< Tensor< T > >::swap_elem ( Index  i,
Index  j 
)
inlineinherited

Definition at line 231 of file Array.hh.

Member Data Documentation

template<class T>
Array<double> CASM::TensorBasis< T >::coeffs

Definition at line 227 of file Tensor.hh.


The documentation for this class was generated from the following file: