| 123 | //------------------------------------------------------------------------------ |
| 124 | |
| 125 | GrB_Info GrB_Vector_select_Scalar |
| 126 | ( |
| 127 | GrB_Vector w, // input/output vector for results |
| 128 | const GrB_Vector M, // optional mask for w, or NULL |
| 129 | const GrB_BinaryOp accum, // optional accum for Z=accum(w,T) |
| 130 | const GrB_IndexUnaryOp op, // operator to select the entries |
| 131 | const GrB_Vector u, // first input: vector u |
| 132 | const GrB_Scalar Thunk, // optional input for select operator |
| 133 | const GrB_Descriptor desc // descriptor for w and M |
| 134 | ) |
| 135 | { |
| 136 | GB_WHERE (w, "GrB_Vector_select_Scalar (w, M, accum, op, u, thunk, desc)") ; |
| 137 | return (GB_sel (w, M, accum, op, u, Thunk, desc, Context)) ; |
| 138 | } |
| 139 | |