1function s = GB_spec_is_positional (op) 2%GB_SPEC_IS_POSITIONAL determine if an op is positional 3 4% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. 5% SPDX-License-Identifier: Apache-2.0 6 7if (isstruct (op)) 8 op = op.opname ; 9end 10switch (op) 11 case { 'firsti' , 'firsti1' , 'firstj' , 'firstj1', ... 12 'secondi', 'secondi1', 'secondj', 'secondj1' } ; 13 % binary positional op 14 s = true ; 15 case { 'positioni', 'positioni1', 'positionj', 'positionj1' } 16 % unary positional op 17 s = true ; 18 otherwise 19 s = false ; 20end 21 22