2 #include "../io/Print/Print.h"
8 for(
int i=0;i<lines;i++){
10 for(
int j=0;j<cols;j++)
_printf_(
" " << setw(11) << setprecision (5) << array[i*cols+j]);
18 for(
int i=0;i<lines;i++){
20 for(
int j=0;j<cols;j++)
_printf_(
" " << setw(11) << setprecision (5) << array[i*cols+j]);
29 for(
int i=0;i<lines;i++){
32 for(
int j=0;j<cols;j++){
33 if(array[i*cols+j]!=0.0){
39 _printf_(
" ] "<<i<<
" => "<<count <<
"\n");
45 for(
int i=0;i<lines;i++){
47 for(
int j=0;j<cols;j++)
_printf_(
" " << setw(11) << setprecision (5) << array[i*cols+j]);
53 FILE *f = fopen(filename,
"w");
54 fprintf(f,
"%% Matrix of size %ix%i\n",lines,cols);
56 fprintf(f,
"A=[...\n");
57 for(
int i=0;i<lines;i++){
58 for(
int j=0;j<cols;j++) fprintf(f,
" %i",array[i*cols+j]);
66 for(
int i=0;i<lines;i++){
68 for(
int j=0;j<cols;j++){
77 unsigned int i=1L<<(
sizeof(n)*8-1);