1function w = GB_spec_mxv (w, mask, accum, semiring, A, u, descriptor) 2%GB_SPEC_MXV a MATLAB mimic of GrB_mxv 3% 4% Usage: 5% w = GB_spec_mxv (w, mask, accum, semiring, A, u, descriptor) 6% 7% w, mask, and u are vectors. u is not transposed (descriptor inp1 ignored) 8 9% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. 10% SPDX-License-Identifier: Apache-2.0 11 12if (nargout > 1 || nargin ~= 7) 13 error ('usage: w = GB_spec_mxv (w, mask, accum, semiring, A, u, descriptor)') ; 14end 15 16% make sure u is a column vector 17if (isstruct (u)) 18 n = size (u.matrix, 2) ; 19else 20 n = size (u, 2); 21end 22if (n ~= 1) 23 error ('u must be a vector') ; 24end 25 26% GraphBLAS does not allow u to be transposed via the descriptor 27if (isfield (descriptor, 'inp1')) 28 descriptor = rmfield (descriptor, 'inp1') ; 29end 30 31w = GB_spec_mxm (w, mask, accum, semiring, A, u, descriptor) ; 32 33