// matrix_m04.cpp test the matrix channels in c08.cpp. // this file has a triple purpose: 1) my testing. 2) demonstration. 3) your computations. #include #include "matrix_dll.h" #include "StdAfx.h" //#include "matrix_h0s.h" //#include "matrix_h01.h" //#include "matrix_h02.h" //#include "matrix_h03.h" //#include "matrix_h04.h" //#include "matrix_h05.h" //#include "matrix_h06.h" //#include "matrix_h07.h" //#include "matrix_h08.h" #include "matrix_h09.h" // get yourself enough arrays. any unused ones consume neglegible storage. #define amt_of_arrays 25 matrix_preferences mat_pref; // declare the global preferences. int main() { FILE *outfile, *datafile, *spherefile, *ellipsoidfile; MAT array[amt_of_arrays], scratch[amt_of_arrays]; CHN chan[amt_of_arrays]; double residue, residue_identity, norm_average, relative_variance, relative_average, R, Theta, rho; double start_LDIAG, ratio_LDIAG, start_MDIAG, ratio_MDIAG, start_RDIAG, ratio_RDIAG, relative_chan[ELEVEN_MX + 1]; unsigned long i, sw; unsigned long counter=0, left_size, right_size, size, multiplier, amount, sort=0, construct; unsigned long sw_LBRA, sw_MBRA, sw_MKET, sw_RKET, sw_LAVE, sw_RAVE, answer, method; int y=0; char title[200]; extern matrix_preferences mat_pref; // so that you may access them. outfile = fopen("test.txt", "w"); for(i=0; i