File: test16.m

package info (click to toggle)
suitesparse-graphblas 7.4.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 67,112 kB
  • sloc: ansic: 1,072,243; cpp: 8,081; sh: 512; makefile: 506; asm: 369; python: 125; awk: 10
file content (33 lines) | stat: -rw-r--r-- 941 bytes parent folder | download | duplicates (2)
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
function test16
%TEST16 test user-defined complex type (runs all testc*.m)

% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved.
% SPDX-License-Identifier: Apache-2.0

% all complex matrix tests

for k = [false true]
    GB_builtin_complex_set (k) ;
    if (k)
        fprintf ('\nTesting built-in GxB_FC64 complex type:\n') ;
    else
        fprintf ('\nTesting user-defined Complex type:\n') ;
    end

    testc1 (k)      % test ops
    testc2 (0,k)    % A'*B, A+B, A*B
    testc3 (k)      % extract column, extract submatrix
    testc4 (k)      % extractElement, setElement
    testc5 (k)      % subref
    testc6 (k)      % apply
    testc7 (k)      % assign
    testc8 (k)      % eWise
    testc9 (k)      % extractTuples
    testca (k)      % mxm, mxv, vxm
    testcb (k)      % reduce
    testcc (k)      % transpose
end

GB_builtin_complex_set (true) ;
fprintf ('\ntest16: all complex tests passed\n') ;