This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::cmp::Ord; | |
| use std::ffi::{c_int, c_ulong, c_void}; | |
| use std::time::{SystemTime, UNIX_EPOCH}; | |
| use std::error::Error; | |
| // Note: Sometimes due to initialization artifacts zeros occur between sorted numbers | |
| fn radix_sort<'a, T>(arr: &'a mut [T]) -> &'a [T] | |
| where T: | |
| Ord + Clone + Copy + Into<u64> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <math.h> | |
| #include <stdint.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| typedef struct | |
| { | |
| int32_t k; | |
| double **x_train; | |
| double *y_train; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdint.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| char *strstr(const char *string1, const char *string2) | |
| { | |
| if (!string1 || !string2) | |
| return NULL; | |
| size_t text_len = strlen(string1); |