This function returns the contents of the file 'matarray.dat'
| 770 | |
| 771 | // This function returns the contents of the file 'matarray.dat' |
| 772 | const std::string get_decoded_string_matarray() |
| 773 | { |
| 774 | dlib::base64 base64_coder; |
| 775 | dlib::compress_stream::kernel_1ea compressor; |
| 776 | std::ostringstream sout; |
| 777 | std::istringstream sin; |
| 778 | |
| 779 | // The base64 encoded data from the file 'matarray.dat' we want to decode and return. |
| 780 | sout << "gO6XH2WGbm8Xaw3a5FJbh3V823W6P2Qk/vHaAAAAARccIppHWdmViaKby7JA5PQvXjYMWUYvXRHv"; |
| 781 | sout << "xPdURZl1un3CT/rjT11Yry0y3+1W7GBmfBJ0gVFKGdiGuqoNAMtmzL/ll3YfEQ7ED7aB33aDTktw"; |
| 782 | sout << "AWVkHT+gqTbKwjP+8YvB3s3ziK640ITOAWazAghKDVl7AHGn+fjq29paBZMczuJofl8FinZUhwa9"; |
| 783 | sout << "Ol5gdAEQa6VZDmJUeo2soTJcEDpkW9LkRmXvjQkyEHfEHQNFDfQq4p2U+dHz4lOKlcj3VzQIeG/s"; |
| 784 | sout << "oxa9KhJND4aQ5xeNUUHUzFBU3XhQHlyDIn/RNdX/ZwA="; |
| 785 | |
| 786 | |
| 787 | // Put the data into the istream sin |
| 788 | sin.str(sout.str()); |
| 789 | sout.str(""); |
| 790 | |
| 791 | // Decode the base64 text into its compressed binary form |
| 792 | base64_coder.decode(sin,sout); |
| 793 | sin.clear(); |
| 794 | sin.str(sout.str()); |
| 795 | sout.str(""); |
| 796 | |
| 797 | // Decompress the data into its original form |
| 798 | compressor.decompress(sin,sout); |
| 799 | |
| 800 | // Return the decoded and decompressed data |
| 801 | return sout.str(); |
| 802 | } |
| 803 | |
| 804 | void setup_mats_and_arrays ( |
| 805 | array2d<int>& a, |
no test coverage detected