// File: /workspace/github_cpp_makefile_star2_O2/nikosgalanis[P]Vectors-Similarity-Search-and-Clustering/programs/Clustering/../../algorithms/Clustering/clustering.h
// Function: Clustering<double>::Clustering(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<std::vector<double, std::allocator<double>>, std::allocator<std::vector<double, std::allocator<double>>>>, unsigned int, unsigned int, unsigned int)
Clustering(std::string assignment_method, std::vector<std::vector<T>> feature_vectors,
			uint32_t k, uint32_t lsh_l, uint32_t lsh_k): feature_vectors(feature_vectors), k(k), lsh_l(lsh_l), lsh_k(lsh_k) {
				if (assignment_method != "reverse_LSH") {
					cout << "Wrong assignment method selected\n";
					exit(EXIT_FAILURE);
				}	
				// initialize all the classs fields necessary
				this->assignment_method = assignment_method;

				// default lsh arguments
				uint32_t m = pow(2,32) - 5;
				uint32_t M = n_points / 16;
				uint32_t w = 10000;
				
				n_points = feature_vectors.size();
				assert(n_points);
				space_dim = feature_vectors.at(0).size();

				// initialize the lsh class
				lsh_instant = new LSH<T>(lsh_l, m, M, n_points, lsh_k, space_dim, w, feature_vectors);

				vector<int> assigned(n_points, 0);
				assigned_centroid = assigned;
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %r9d, %r13d
movl %r8d, %r12d
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl %ecx, (%rdi)
leaq 0x20(%rdi), %rax
movq %rax, 0x10(%rdi)
andq $0x0, 0x18(%rdi)
leaq 0x10(%rdi), %rbp
movb $0x0, 0x20(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rdi)
andq $0x0, 0x40(%rdi)
addq $0x48, %rdi
movq %rdi, 0x20(%rsp)
movq %rdx, %rsi
movq %rbp, 0x28(%rsp)
callq 0x3a92
andq $0x0, 0x70(%rbx)
leaq 0x60(%rbx), %rax
movq %rax, 0x18(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%rbx)
movl %r12d, 0x10(%rsp)
movl %r12d, 0x78(%rbx)
movl %r13d, 0x14(%rsp)
movl %r13d, 0x7c(%rbx)
leaq 0x657d(%rip), %rsi      # 0xa253
movq %r15, %rdi
callq 0x4895
testb %al, %al
jne 0x3dd3
movq %rbp, %rdi
movq %r15, %rsi
callq 0x2130
movl 0x4(%rbx), %eax
pushq $0x10
popq %rcx
cltd
idivl %ecx
movl %eax, %esi
movq 0x8(%r14), %rax
subq (%r14), %rax
pushq $0x18
popq %rcx
cqto
idivq %rcx
movl %eax, 0x4(%rbx)
testl %eax, %eax
je 0x3dee
movl %esi, 0xc(%rsp)
movq %r14, %rdi
xorl %esi, %esi
callq 0x4200
movq 0x8(%rax), %r15
subq (%rax), %r15
shrq $0x3, %r15
movl %r15d, 0x8(%rbx)
pushq $0x68
popq %rdi
callq 0x2210
movq %rax, %r12
movl 0x4(%rbx), %ebp
leaq 0x50(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x3a92
subq $0x8, %rsp
movl $0xfffffffb, %edx       # imm = 0xFFFFFFFB
movq %r12, %rdi
movl 0x18(%rsp), %esi
movl 0x14(%rsp), %ecx
movl %ebp, %r8d
movl 0x1c(%rsp), %r9d
pushq %r13
pushq $0x2710                 # imm = 0x2710
pushq %r15
callq 0x4aaa
addq $0x20, %rsp
movq %r12, 0x80(%rbx)
leaq 0x50(%rsp), %rdi
callq 0x2f0e
movslq 0x4(%rbx), %rsi
leaq 0x34(%rsp), %rdx
andl $0x0, (%rdx)
leaq 0x38(%rsp), %rdi
leaq 0xb(%rsp), %rcx
callq 0x48a0
leaq 0x38(%rsp), %rsi
movq 0x18(%rsp), %rdi
callq 0x48f6
leaq 0x38(%rsp), %rdi
callq 0x4888
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xc1fe(%rip), %rdi      # 0xffd8
leaq 0x655e(%rip), %rsi      # 0xa33f
callq 0x2200
pushq $0x1
popq %rdi
callq 0x2250
leaq 0x656c(%rip), %rdi      # 0xa361
leaq 0x656e(%rip), %rsi      # 0xa36a
leaq 0x6635(%rip), %rcx      # 0xa438
movl $0x9b, %edx
callq 0x2170
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0x4888
jmp 0x3e44
jmp 0x3e41
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x2f0e
jmp 0x3e30
movq %rax, %r14
movq %r12, %rdi
callq 0x21f0
jmp 0x3e44
movq %rax, %r14
jmp 0x3e58
jmp 0x3e41
movq %rax, %r14
movq 0x18(%rsp), %rdi
callq 0x4888
movq 0x20(%rsp), %rdi
callq 0x2f0e
addq $0x30, %rbx
movq %rbx, %rdi
callq 0x2f0e
movq 0x28(%rsp), %rdi
callq 0x20d0
movq %r14, %rdi
callq 0x23b0