Optimization
This commit is contained in:
parent
e3fc7b1000
commit
6c6135844b
4
irrep.jl
4
irrep.jl
|
|
@ -1,4 +1,4 @@
|
||||||
using DelimitedFiles, LinearAlgebra, StatsBase
|
using DelimitedFiles, LinearAlgebra
|
||||||
|
|
||||||
function calculate_all_data(N::Int)
|
function calculate_all_data(N::Int)
|
||||||
ks = -N÷2:N÷2-1
|
ks = -N÷2:N÷2-1
|
||||||
|
|
@ -35,7 +35,7 @@ function calculate_A1_data(N::Int)
|
||||||
end
|
end
|
||||||
|
|
||||||
unique_i = unique(labels)
|
unique_i = unique(labels)
|
||||||
multiplicity = [countmap(labels)[i] for i in unique_i]
|
multiplicity = [count(labels.==i) for i in unique_i]
|
||||||
unique_point = transpose(lattice[:, unique_i])
|
unique_point = transpose(lattice[:, unique_i])
|
||||||
|
|
||||||
return unique_i, unique_point, multiplicity
|
return unique_i, unique_point, multiplicity
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue