#ifdef CLOVER_AS_COMPLEX_ARRAY

# define A11 Re(a(1,i))
# define A22 Im(a(1,i))

# define A12 a(2,i)
# define A13 a(3,i)
# define A14 a(4,i)
# define A15 a(5,i)
# define A16 a(6,i)
# define A17 a(7,i)
# define A18 a(8,i)
# define A19 a(9,i)
# define A1a a(10,i)
# define A1b a(11,i)
# define A1c a(12,i)

# define A23 a(13,i)
# define A24 a(14,i)
# define A25 a(15,i)
# define A26 a(16,i)
# define A27 a(17,i)
# define A28 a(18,i)
# define A29 a(19,i)
# define A2a a(20,i)
# define A2b a(21,i)
# define A2c a(22,i)

# define A33 Re(a(23,i))
# define A44 Im(a(23,i))

# define A34 a(24,i)
# define A35 a(25,i)
# define A36 a(26,i)
# define A37 a(27,i)
# define A38 a(28,i)
# define A39 a(29,i)
# define A3a a(30,i)
# define A3b a(31,i)
# define A3c a(32,i)

# define A45 a(33,i)
# define A46 a(34,i)
# define A47 a(35,i)
# define A48 a(36,i)
# define A49 a(37,i)
# define A4a a(38,i)
# define A4b a(39,i)
# define A4c a(40,i)

# define A55 Re(a(41,i))
# define A66 Im(a(41,i))

# define A56 a(42,i)
# define A57 a(43,i)
# define A58 a(44,i)
# define A59 a(45,i)
# define A5a a(46,i)
# define A5b a(47,i)
# define A5c a(48,i)

# define A67 a(49,i)
# define A68 a(50,i)
# define A69 a(51,i)
# define A6a a(52,i)
# define A6b a(53,i)
# define A6c a(54,i)

# define A77 Re(a(55,i))
# define A88 Im(a(55,i))

# define A78 a(56,i)
# define A79 a(57,i)
# define A7a a(58,i)
# define A7b a(59,i)
# define A7c a(60,i)

# define A89 a(61,i)
# define A8a a(62,i)
# define A8b a(63,i)
# define A8c a(64,i)

# define A99 Re(a(65,i))
# define Aaa Im(a(65,i))

# define A9a a(66,i)
# define A9b a(67,i)
# define A9c a(68,i)

# define Aab a(69,i)
# define Aac a(70,i)

# define Abb Re(a(71,i))
# define Acc Im(a(71,i))

# define Abc a(72,i)



# define B11 Re(b(67,i))
# define B22 Im(b(67,i))
# define B33 Re(b(68,i))
# define B44 Im(b(68,i))
# define B55 Re(b(69,i))
# define B66 Im(b(69,i))
# define B77 Re(b(70,i))
# define B88 Im(b(70,i))
# define B99 Re(b(71,i))
# define Baa Im(b(71,i))
# define Bbb Re(b(72,i))
# define Bcc Im(b(72,i))

# define B21 b(1,i)

# define B31 b(2,i)
# define B32 b(3,i)

# define B41 b(4,i)
# define B42 b(5,i)
# define B43 b(6,i)

# define B51 b(7,i)
# define B52 b(8,i)
# define B53 b(9,i)
# define B54 b(10,i)

# define B61 b(11,i)
# define B62 b(12,i)
# define B63 b(13,i)
# define B64 b(14,i)
# define B65 b(15,i)

# define B71 b(16,i)
# define B72 b(17,i)
# define B73 b(18,i)
# define B74 b(19,i)
# define B75 b(20,i)
# define B76 b(21,i)
# define B81 b(22,i)
# define B82 b(23,i)
# define B83 b(24,i)
# define B84 b(25,i)
# define B85 b(26,i)
# define B86 b(27,i)
# define B87 b(28,i)
# define B91 b(29,i)
# define B92 b(30,i)
# define B93 b(31,i)
# define B94 b(32,i)
# define B95 b(33,i)
# define B96 b(34,i)
# define B97 b(35,i)
# define B98 b(36,i)
# define Ba1 b(37,i)
# define Ba2 b(38,i)
# define Ba3 b(39,i)
# define Ba4 b(40,i)
# define Ba5 b(41,i)
# define Ba6 b(42,i)
# define Ba7 b(43,i)
# define Ba8 b(44,i)
# define Ba9 b(45,i)
# define Bb1 b(46,i)
# define Bb2 b(47,i)
# define Bb3 b(48,i)
# define Bb4 b(49,i)
# define Bb5 b(50,i)
# define Bb6 b(51,i)
# define Bb7 b(52,i)
# define Bb8 b(53,i)
# define Bb9 b(54,i)
# define Bba b(55,i)
# define Bc1 b(56,i)
# define Bc2 b(57,i)
# define Bc3 b(58,i)
# define Bc4 b(59,i)
# define Bc5 b(60,i)
# define Bc6 b(61,i)
# define Bc7 b(62,i)
# define Bc8 b(63,i)
# define Bc9 b(64,i)
# define Bca b(65,i)
# define Bcb b(66,i)


#else

# define A11 a%i11
# define A22 a%i22
# define A33 a%i33
# define A44 a%i44
# define A55 a%i55
# define A66 a%i66
# define A77 a%i77
# define A88 a%i88
# define A99 a%i99
# define Aaa a%iaa
# define Abb a%ibb
# define Acc a%icc

# define A12 a%i12
# define A13 a%i13
# define A14 a%i14
# define A15 a%i15
# define A16 a%i16
# define A17 a%i17
# define A18 a%i18
# define A19 a%i19
# define A1a a%i1a
# define A1b a%i1b
# define A1c a%i1c

# define A23 a%i23
# define A24 a%i24
# define A25 a%i25
# define A26 a%i26
# define A27 a%i27
# define A28 a%i28
# define A29 a%i29
# define A2a a%i2a
# define A2b a%i2b
# define A2c a%i2c

# define A34 a%i34
# define A35 a%i35
# define A36 a%i36
# define A37 a%i37
# define A38 a%i38
# define A39 a%i39
# define A3a a%i3a
# define A3b a%i3b
# define A3c a%i3c

# define A45 a%i45
# define A46 a%i46
# define A47 a%i47
# define A48 a%i48
# define A49 a%i49
# define A4a a%i4a
# define A4b a%i4b
# define A4c a%i4c

# define A56 a%i56
# define A57 a%i57
# define A58 a%i58
# define A59 a%i59
# define A5a a%i5a
# define A5b a%i5b
# define A5c a%i5c

# define A67 a%i67
# define A68 a%i68
# define A69 a%i69
# define A6a a%i6a
# define A6b a%i6b
# define A6c a%i6c

# define A78 a%i78
# define A79 a%i79
# define A7a a%i7a
# define A7b a%i7b
# define A7c a%i7c

# define A89 a%i89
# define A8a a%i8a
# define A8b a%i8b
# define A8c a%i8c

# define A9a a%i9a
# define A9b a%i9b
# define A9c a%i9c

# define Aab a%iab
# define Aac a%iac

# define Abc a%ibc


# define B11 b%i11
# define B22 b%i22
# define B33 b%i33
# define B44 b%i44
# define B55 b%i55
# define B66 b%i66
# define B77 b%i77
# define B88 b%i88
# define B99 b%i99
# define Baa b%iaa
# define Bbb b%ibb
# define Bcc b%icc

# define B21 b%i21

# define B31 b%i31
# define B32 b%i32

# define B41 b%i41
# define B42 b%i42
# define B43 b%i43

# define B51 b%i51
# define B52 b%i52
# define B53 b%i53
# define B54 b%i54

# define B61 b%i61
# define B62 b%i62
# define B63 b%i63
# define B64 b%i64
# define B65 b%i65

# define B71 b%i71
# define B72 b%i72
# define B73 b%i73
# define B74 b%i74
# define B75 b%i75
# define B76 b%i76

# define B81 b%i81
# define B82 b%i82
# define B83 b%i83
# define B84 b%i84
# define B85 b%i85
# define B86 b%i86
# define B87 b%i87

# define B91 b%i91
# define B92 b%i92
# define B93 b%i93
# define B94 b%i94
# define B95 b%i95
# define B96 b%i96
# define B97 b%i97
# define B98 b%i98

# define Ba1 b%ia1
# define Ba2 b%ia2
# define Ba3 b%ia3
# define Ba4 b%ia4
# define Ba5 b%ia5
# define Ba6 b%ia6
# define Ba7 b%ia7
# define Ba8 b%ia8
# define Ba9 b%ia9

# define Bb1 b%ib1
# define Bb2 b%ib2
# define Bb3 b%ib3
# define Bb4 b%ib4
# define Bb5 b%ib5
# define Bb6 b%ib6
# define Bb7 b%ib7
# define Bb8 b%ib8
# define Bb9 b%ib9
# define Bba b%iba

# define Bc1 b%ic1
# define Bc2 b%ic2
# define Bc3 b%ic3
# define Bc4 b%ic4
# define Bc5 b%ic5
# define Bc6 b%ic6
# define Bc7 b%ic7
# define Bc8 b%ic8
# define Bc9 b%ic9
# define Bca b%ica
# define Bcb b%icb

#endif

# define A21 conjg(A12)
# define A31 conjg(A13)
# define A41 conjg(A14)
# define A51 conjg(A15)
# define A61 conjg(A16)
# define A71 conjg(A17)
# define A81 conjg(A18)
# define A91 conjg(A19)
# define Aa1 conjg(A1a)
# define Ab1 conjg(A1b)
# define Ac1 conjg(A1c)

# define A32 conjg(A23)
# define A42 conjg(A24)
# define A52 conjg(A25)
# define A62 conjg(A26)
# define A72 conjg(A27)
# define A82 conjg(A28)
# define A92 conjg(A29)
# define Aa2 conjg(A2a)
# define Ab2 conjg(A2b)
# define Ac2 conjg(A2c)

# define A43 conjg(A34)
# define A53 conjg(A35)
# define A63 conjg(A36)
# define A73 conjg(A37)
# define A83 conjg(A38)
# define A93 conjg(A39)
# define Aa3 conjg(A3a)
# define Ab3 conjg(A3b)
# define Ac3 conjg(A3c)

# define A54 conjg(A45)
# define A64 conjg(A46)
# define A74 conjg(A47)
# define A84 conjg(A48)
# define A94 conjg(A49)
# define Aa4 conjg(A4a)
# define Ab4 conjg(A4b)
# define Ac4 conjg(A4c)

# define A65 conjg(A56)
# define A75 conjg(A57)
# define A85 conjg(A58)
# define A95 conjg(A59)
# define Aa5 conjg(A5a)
# define Ab5 conjg(A5b)
# define Ac5 conjg(A5c)

# define A76 conjg(A67)
# define A86 conjg(A68)
# define A96 conjg(A69)
# define Aa6 conjg(A6a)
# define Ab6 conjg(A6b)
# define Ac6 conjg(A6c)

# define A87 conjg(A78)
# define A97 conjg(A79)
# define Aa7 conjg(A7a)
# define Ab7 conjg(A7b)
# define Ac7 conjg(A7c)

# define A98 conjg(A89)
# define Aa8 conjg(A8a)
# define Ab8 conjg(A8b)
# define Ac8 conjg(A8c)

# define Aa9 conjg(A9a)
# define Ab9 conjg(A9b)
# define Ac9 conjg(A9c)

# define Aba conjg(Aab)
# define Aca conjg(Aac)

# define Acb conjg(Abc)


# define B12 conjg(B21)

# define B13 conjg(B31)
# define B23 conjg(B32)

# define B14 conjg(B41)
# define B24 conjg(B42)
# define B34 conjg(B43)

# define B15 conjg(B51)
# define B25 conjg(B52)
# define B35 conjg(B53)
# define B45 conjg(B54)

# define B16 conjg(B61)
# define B26 conjg(B62)
# define B36 conjg(B63)
# define B46 conjg(B64)
# define B56 conjg(B65)

# define B17 conjg(B71)
# define B27 conjg(B72)
# define B37 conjg(B73)
# define B47 conjg(B74)
# define B57 conjg(B75)
# define B67 conjg(B76)

# define B18 conjg(B81)
# define B28 conjg(B82)
# define B38 conjg(B83)
# define B48 conjg(B84)
# define B58 conjg(B85)
# define B68 conjg(B86)
# define B78 conjg(B87)

# define B19 conjg(B91)
# define B29 conjg(B92)
# define B39 conjg(B93)
# define B49 conjg(B94)
# define B59 conjg(B95)
# define B69 conjg(B96)
# define B79 conjg(B97)
# define B89 conjg(B98)

# define B1a conjg(Ba1)
# define B2a conjg(Ba2)
# define B3a conjg(Ba3)
# define B4a conjg(Ba4)
# define B5a conjg(Ba5)
# define B6a conjg(Ba6)
# define B7a conjg(Ba7)
# define B8a conjg(Ba8)
# define B9a conjg(Ba9)

# define B1b conjg(Bb1)
# define B2b conjg(Bb2)
# define B3b conjg(Bb3)
# define B4b conjg(Bb4)
# define B5b conjg(Bb5)
# define B6b conjg(Bb6)
# define B7b conjg(Bb7)
# define B8b conjg(Bb8)
# define B9b conjg(Bb9)
# define Bab conjg(Bba)

# define B1c conjg(Bc1)
# define B2c conjg(Bc2)
# define B3c conjg(Bc3)
# define B4c conjg(Bc4)
# define B5c conjg(Bc5)
# define B6c conjg(Bc6)
# define B7c conjg(Bc7)
# define B8c conjg(Bc8)
# define B9c conjg(Bc9)
# define Bac conjg(Bca)
# define Bbc conjg(Bcb)


# define SC1 1, 1
# define SC2 1, 2
# define SC3 1, 3
# define SC4 2, 1
# define SC5 2, 2
# define SC6 2, 3
# define SC7 3, 1
# define SC8 3, 2
# define SC9 3, 3
# define SC10 4, 1
# define SC11 4, 2
# define SC12 4, 3
