-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmatriz.h
More file actions
34 lines (29 loc) · 1.07 KB
/
matriz.h
File metadata and controls
34 lines (29 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef SOME_HEADER_FILE_H
#define SOME_HEADER_FILE_H
typedef struct {
int lin_inicio;
int lin_fim;
int col_inicio;
int col_fim;
} bloco_t;
typedef struct {
int **matriz;
bloco_t *bloco;
} matriz_bloco_t;
#endif
int gerar_matriz(int **matriz, int linha, int coluna,int valor);
int zerar_matriz (int **matriz, int linha, int coluna);
int imprimir_matriz (int **matriz, int linha, int coluna);
int comparar_matriz (int **matriza, int **matrizb, int linha, int coluna);
int **liberar_matriz (int **matriz, int linha, int coluna);
int **alocar_matriz (int linha, int coluna);
// submatriz
int gerar_submatriz (int **mat_origem, int **submatriz, bloco_t *bloco);
//int imprimir_submatriz (matriz_bloco_t *submatriz);
matriz_bloco_t **particionar_matriz (int **matriz, int mat_lin, int mat_col, int orientacao, int cortes);
matriz_bloco_t **liberar_submatriz (matriz_bloco_t **submatriz,int cortes);
//int imprimir_bloco (matriz_bloco_t *submatriz);
matriz_bloco_t **constroi_submatriz (int mat_lin, int mat_col, int divisor);