CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
71 lines
2.4 KiB
C
71 lines
2.4 KiB
C
#ifndef ISL_MAT_PRIVATE_H
|
|
#define ISL_MAT_PRIVATE_H
|
|
|
|
#include <isl/mat.h>
|
|
#include <isl_blk.h>
|
|
|
|
struct isl_mat {
|
|
int ref;
|
|
|
|
struct isl_ctx *ctx;
|
|
|
|
#define ISL_MAT_BORROWED (1 << 0)
|
|
unsigned flags;
|
|
|
|
unsigned n_row;
|
|
unsigned n_col;
|
|
|
|
isl_int **row;
|
|
|
|
/* actual size of the rows in memory; n_col <= max_col */
|
|
unsigned max_col;
|
|
|
|
struct isl_blk block;
|
|
};
|
|
|
|
uint32_t isl_mat_get_hash(__isl_keep isl_mat *mat);
|
|
|
|
__isl_give isl_mat *isl_mat_zero(isl_ctx *ctx, unsigned n_row, unsigned n_col);
|
|
__isl_give isl_mat *isl_mat_dup(__isl_keep isl_mat *mat);
|
|
__isl_give isl_mat *isl_mat_cow(__isl_take isl_mat *mat);
|
|
__isl_give isl_mat *isl_mat_sub_alloc(__isl_keep isl_mat *mat,
|
|
unsigned first_row, unsigned n_row, unsigned first_col, unsigned n_col);
|
|
__isl_give isl_mat *isl_mat_sub_alloc6(isl_ctx *ctx, isl_int **row,
|
|
unsigned first_row, unsigned n_row, unsigned first_col, unsigned n_col);
|
|
void isl_mat_sub_copy(struct isl_ctx *ctx, isl_int **dst, isl_int **src,
|
|
unsigned n_row, unsigned dst_col, unsigned src_col, unsigned n_col);
|
|
void isl_mat_sub_neg(struct isl_ctx *ctx, isl_int **dst, isl_int **src,
|
|
unsigned n_row, unsigned dst_col, unsigned src_col, unsigned n_col);
|
|
isl_stat isl_mat_sub_transform(isl_int **row, unsigned n_row,
|
|
unsigned first_col, __isl_take isl_mat *mat);
|
|
__isl_give isl_mat *isl_mat_diag(isl_ctx *ctx, unsigned n_row, isl_int d);
|
|
|
|
__isl_give isl_mat *isl_mat_reverse_gauss(__isl_take isl_mat *mat);
|
|
|
|
__isl_give isl_mat *isl_mat_scale(__isl_take isl_mat *mat, isl_int m);
|
|
__isl_give isl_mat *isl_mat_scale_down_row(__isl_take isl_mat *mat, int row,
|
|
isl_int m);
|
|
|
|
__isl_give isl_vec *isl_mat_get_row(__isl_keep isl_mat *mat, unsigned row);
|
|
|
|
__isl_give isl_mat *isl_mat_lexnonneg_rows(__isl_take isl_mat *mat);
|
|
|
|
isl_bool isl_mat_is_scaled_identity(__isl_keep isl_mat *mat);
|
|
|
|
isl_stat isl_mat_row_gcd(__isl_keep isl_mat *mat, int row, isl_int *gcd);
|
|
|
|
void isl_mat_col_mul(__isl_keep isl_mat *mat, int dst_col, isl_int f,
|
|
int src_col);
|
|
void isl_mat_col_submul(__isl_keep isl_mat *mat,
|
|
int dst_col, isl_int f, int src_col);
|
|
__isl_give isl_mat *isl_mat_col_addmul(__isl_take isl_mat *mat, int dst_col,
|
|
isl_int f, int src_col);
|
|
__isl_give isl_mat *isl_mat_col_neg(__isl_take isl_mat *mat, int col);
|
|
__isl_give isl_mat *isl_mat_row_neg(__isl_take isl_mat *mat, int row);
|
|
|
|
int isl_mat_get_element(__isl_keep isl_mat *mat, int row, int col, isl_int *v);
|
|
__isl_give isl_mat *isl_mat_set_element(__isl_take isl_mat *mat,
|
|
int row, int col, isl_int v);
|
|
|
|
#endif
|