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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
|
//------------------------------------------------------------------------------
// GB_dense.h: defintions for dense matrix operations
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
//------------------------------------------------------------------------------
#ifndef GB_DENSE_H
#define GB_DENSE_H
#include "GB_ek_slice.h"
//------------------------------------------------------------------------------
// GB_dense_ewise3_accum: C += A+B, all 3 matrices dense
//------------------------------------------------------------------------------
void GB_dense_ewise3_accum // C += A+B, all matrices dense
(
GrB_Matrix C, // input/output matrix
const GrB_Matrix A,
const GrB_Matrix B,
const GrB_BinaryOp op,
GB_Context Context
) ;
//------------------------------------------------------------------------------
// GB_dense_ewise3_noaccum: C = A+B where A and B are dense; C anything
//------------------------------------------------------------------------------
GrB_Info GB_dense_ewise3_noaccum // C = A+B, where A and B are dense
(
GrB_Matrix C, // input/output matrix
const bool C_is_dense, // true if C is dense
const GrB_Matrix A,
const GrB_Matrix B,
const GrB_BinaryOp op,
GB_Context Context
) ;
//------------------------------------------------------------------------------
// GB_dense_subassign_23: C(:,:) += A where C is dense and A is sparse or dense
//------------------------------------------------------------------------------
GrB_Info GB_dense_subassign_23 // C += A; C is dense, A is sparse or dense
(
GrB_Matrix C, // input/output matrix
const GrB_Matrix A, // input matrix
const GrB_BinaryOp accum, // operator to apply
GB_Context Context
) ;
//------------------------------------------------------------------------------
// GB_dense_subassign_22: C(:,:) += scalar where C is dense
//------------------------------------------------------------------------------
GrB_Info GB_dense_subassign_22 // C += x where C is dense and x is a scalar
(
GrB_Matrix C, // input/output matrix
const void *scalar, // input scalar
const GrB_Type atype, // type of the input scalar
const GrB_BinaryOp accum, // operator to apply
GB_Context Context
) ;
//------------------------------------------------------------------------------
// GB_dense_subassign_05d: C(:,:)<M> = scalar ; C is dense
//------------------------------------------------------------------------------
GrB_Info GB_dense_subassign_05d
(
GrB_Matrix C,
// input:
const GrB_Matrix M,
const bool Mask_struct,
const void *scalar,
const GrB_Type atype,
GB_Context Context
) ;
//------------------------------------------------------------------------------
// GB_dense_subassign_06d: C(:,:)<A> = A ; C is dense
//------------------------------------------------------------------------------
GrB_Info GB_dense_subassign_06d
(
GrB_Matrix C,
// input:
const GrB_Matrix A,
const bool Mask_struct,
GB_Context Context
) ;
//------------------------------------------------------------------------------
// GB_subassign_24: C = A
//------------------------------------------------------------------------------
GrB_Info GB_subassign_24 // C = A, copy A into an existing matrix C
(
GrB_Matrix C, // output matrix to modify
const GrB_Matrix A, // input matrix to copy
GB_Context Context
) ;
//------------------------------------------------------------------------------
// GB_dense_subassign_25: C<M> = A ; C is empty, A is dense, M is structural
//------------------------------------------------------------------------------
GrB_Info GB_dense_subassign_25
(
GrB_Matrix C,
// input:
const GrB_Matrix M,
const GrB_Matrix A,
GB_Context Context
) ;
#endif
|