cctbx::sgtbx::tensor_rank_2 Namespace Reference

Symmetry constraints for tensors of rank 2. More...


Classes

class  constraints
 Handling of symmetry constraints for tensors of rank 2. More...
class  cartesian_constraints
 Special position constraints on Cartesian ADP's. More...

Namespaces

namespace  cartesian_constraints_constants
 Outside template class to avoid complications.

Functions

int * constraints_raw (const int *r, int *c)
 Coefficients r.transpose() * c * r - c = 0.
int * constraints_raw (af::const_ref< rt_mx > const &symmetry_matrices, std::size_t i_first_matrix_to_use, bool reciprocal_space, int *c)
 Coefficients r.transpose() * c * r - c = 0 for all symmetry_matrices.


Detailed Description

Symmetry constraints for tensors of rank 2.

Function Documentation

int* cctbx::sgtbx::tensor_rank_2::constraints_raw ( const int *  r,
int *  c 
)

Coefficients r.transpose() * c * r - c = 0.

Mathematica code: r={{r0,r1,r2},{r3,r4,r5},{r6,r7,r8}} c={{c0,c3,c4},{c3,c1,c5},{c4,c5,c2}} FortranForm[Expand[Transpose[r].c.r - c]]


Generated on Thu Jun 19 15:35:07 2014 for cctbx by  doxygen 1.5.6