Skip to content

Representation

A (1D) irreducible representation of a finite group.

Source representation.hpp

Constructors

Creates a Representation from a vector of complex numbers

Representation(characters::Vector{<:Number})
Representation(std::vector<complex> const &characters);

Methods

size

Returns the size of the Representation, i.e. the number of characters.

size(irrep::Representation)
int64_t size() const;

isreal

Returns the whether or not the Representation is real, I.E. the characters are real numbers and do not have an imaginary part.

isreal(irrep::Representation; precision::Real=1e-12)
bool isreal(double precision = 1e-12) const;

"*" operator

Multiplies two Representations by overloading the * operator.

Base.:*(p1::Representation, p2::Representation)
Representation operator*(Representation const &p1, Representation const &p2);

Usage Example

r1 = Representation([1, -1, 1, -1])
r2 = Representation([1, 1im, -1, -1im])

@show r1 * r2
Representation r1 = {1, -1, 1, -1};
Representation r2 = {1, 1i, -1, -1i};

XDIAG_SHOW(r1 * r2);