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
|
//------------------------------------------------------------------------------
// GB_subassign_dense.h: definitions for dense subassign methods
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2025, All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
//------------------------------------------------------------------------------
#ifndef GB_SUBASSIGN_DENSE_H
#define GB_SUBASSIGN_DENSE_H
//------------------------------------------------------------------------------
// GB_subassign_23: C(:,:) += A where C is dense and A is sparse or dense
//------------------------------------------------------------------------------
GrB_Info GB_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_Werk Werk
) ;
//------------------------------------------------------------------------------
// GB_subassign_22: C(:,:) += scalar where C is dense
//------------------------------------------------------------------------------
GrB_Info GB_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 scalar_type, // type of the input scalar
const GrB_BinaryOp accum, // operator to apply
GB_Werk Werk
) ;
//------------------------------------------------------------------------------
// GB_subassign_05d: C(:,:)<M> = scalar ; C is dense
//------------------------------------------------------------------------------
GrB_Info GB_subassign_05d
(
GrB_Matrix C,
// input:
const GrB_Matrix M,
const bool Mask_struct,
const void *scalar,
const GrB_Type scalar_type,
GB_Werk Werk
) ;
//------------------------------------------------------------------------------
// GB_subassign_06d: C(:,:)<A> = A ; C is dense
//------------------------------------------------------------------------------
GrB_Info GB_subassign_06d
(
GrB_Matrix C,
// input:
const GrB_Matrix A,
const bool Mask_struct,
GB_Werk Werk
) ;
//------------------------------------------------------------------------------
// 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_Werk Werk
) ;
//------------------------------------------------------------------------------
// GB_subassign_25: C<M> = A ; C is empty, A is dense, M is structural
//------------------------------------------------------------------------------
GrB_Info GB_subassign_25
(
GrB_Matrix C,
// input:
const GrB_Matrix M,
const GrB_Matrix A,
GB_Werk Werk
) ;
#endif
|