// 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, unsigned int)
Clustering(std::string assignment_method, std::vector<std::vector<T>> feature_vectors, uint32_t k,
			uint32_t hc_M, uint32_t hc_k, uint32_t hc_probes): feature_vectors(feature_vectors), k(k),
			hc_M(hc_M), hc_k(hc_k), hc_probes(hc_probes) {
				if (assignment_method != "reverse_Hypercube") {
					cout << "Wrong assignment method selected\n";
					exit(EXIT_FAILURE);
				}	
				// initialize all the classs fields necessary
				this->assignment_method = assignment_method;

				// default hypercube arguments
				uint32_t m = pow(2,32) - 5;
				uint32_t w = 10000;

				
				n_points = feature_vectors.size();
				assert(n_points);
				space_dim = feature_vectors.at(0).size();

				hc_instant = new Hypercube<T>(hc_k, m, hc_M, hc_probes, n_points, w, space_dim, 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, %r15d
movl %r8d, %ebp
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
movl %ecx, (%rdi)
leaq 0x20(%rdi), %rax
movq %rax, 0x10(%rdi)
andq $0x0, 0x18(%rdi)
leaq 0x10(%rdi), %r13
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 %r13, 0x28(%rsp)
callq 0x3a92
movl 0xa0(%rsp), %ecx
leaq 0x60(%rbx), %rax
movq %rax, 0x18(%rsp)
andq $0x0, 0x70(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%rbx)
movl %ebp, 0x88(%rbx)
movl %r15d, 0x14(%rsp)
movl %r15d, 0x8c(%rbx)
movl %ecx, 0x90(%rbx)
leaq 0x636f(%rip), %rsi      # 0xa276
movq %r12, %rdi
callq 0x4895
testb %al, %al
jne 0x3ffd
movq %r13, %rdi
movq %r12, %rsi
callq 0x2130
movl %ebp, 0x10(%rsp)
movq 0x8(%r14), %rax
subq (%r14), %rax
pushq $0x18
popq %rcx
cqto
idivq %rcx
movl %eax, 0x4(%rbx)
testl %eax, %eax
je 0x4018
movq %r14, %rdi
xorl %esi, %esi
callq 0x4200
movq 0x8(%rax), %rbp
subq (%rax), %rbp
shrq $0x3, %rbp
movl %ebp, 0x8(%rbx)
movl $0x88, %edi
callq 0x2210
movq %rax, %r12
movl 0x4(%rbx), %r15d
leaq 0x50(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x3a92
subq $0x8, %rsp
movl $0xfffffffb, %edx       # imm = 0xFFFFFFFB
movq %r12, %rdi
movl 0x1c(%rsp), %esi
movl 0x18(%rsp), %ecx
movl 0xa8(%rsp), %r8d
movl %r15d, %r9d
pushq %r13
pushq %rbp
pushq $0x2710                 # imm = 0x2710
callq 0x6152
addq $0x20, %rsp
movq %r12, 0x98(%rbx)
leaq 0x50(%rsp), %rdi
callq 0x2f0e
movslq 0x4(%rbx), %rsi
leaq 0x34(%rsp), %rdx
andl $0x0, (%rdx)
leaq 0x38(%rsp), %rdi
leaq 0xf(%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 0xbfd4(%rip), %rdi      # 0xffd8
leaq 0x6334(%rip), %rsi      # 0xa33f
callq 0x2200
pushq $0x1
popq %rdi
callq 0x2250
leaq 0x6342(%rip), %rdi      # 0xa361
leaq 0x6344(%rip), %rsi      # 0xa36a
leaq 0x6518(%rip), %rcx      # 0xa545
movl $0xb6, %edx
callq 0x2170
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0x4888
jmp 0x406e
jmp 0x406b
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x2f0e
jmp 0x405a
movq %rax, %r14
movq %r12, %rdi
callq 0x21f0
jmp 0x406e
movq %rax, %r14
jmp 0x4082
jmp 0x406b
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