Home
last modified time | relevance | path

Searched refs:Cols (Results 1 – 25 of 59) sorted by relevance

123

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/PBQP/
DMath.h127 Matrix(unsigned Rows, unsigned Cols) : in Matrix() argument
128 Rows(Rows), Cols(Cols), Data(std::make_unique<PBQPNum []>(Rows * Cols)) { in Matrix()
133 Matrix(unsigned Rows, unsigned Cols, PBQPNum InitVal) in Matrix() argument
134 : Rows(Rows), Cols(Cols), in Matrix()
135 Data(std::make_unique<PBQPNum []>(Rows * Cols)) { in Matrix()
136 std::fill(Data.get(), Data.get() + (Rows * Cols), InitVal); in Matrix()
141 : Rows(M.Rows), Cols(M.Cols), in Matrix()
142 Data(std::make_unique<PBQPNum []>(Rows * Cols)) { in Matrix()
143 std::copy(M.Data.get(), M.Data.get() + (Rows * Cols), Data.get()); in Matrix()
148 : Rows(M.Rows), Cols(M.Cols), Data(std::move(M.Data)) { in Matrix()
[all …]
/third_party/boost/libs/qvm/test/
Dtest_qvm_matrix.hpp17 template <class Tag,int Rows,int Cols,class T=float>
21 T a[Rows][Cols];
22 mutable T b[Rows][Cols];
28 for( int j=0; j!=Cols; ++j,start+=step ) in matrix()
33 template <int Rows,int Cols,class Tag1,class T1,class Tag2,class T2>
35 dump_ab( matrix<Tag1,Rows,Cols,T1> const & a, matrix<Tag2,Rows,Cols,T2> const & b ) in dump_ab() argument
47 template <class Tag,int Rows,int Cols,class T>
49 mat_traits< test_qvm::matrix<Tag,Rows,Cols,T> >:
50 mat_traits_defaults<test_qvm::matrix<Tag,Rows,Cols,T>,T,Rows,Cols>
52 typedef mat_traits_defaults<test_qvm::matrix<Tag,Rows,Cols,T>,T,Rows,Cols> base;
[all …]
Dzero_mat_test.cpp28 template <int Rows,int Cols>
33 test_qvm::matrix<M1,Rows,Cols> m1=zero_mat<float,Rows,Cols>(); in test()
35 for( int j=0; j!=Cols; ++j ) in test()
37 test_qvm::matrix<M2,Rows,Cols> m2(42,1); in test()
40 for( int j=0; j!=Cols; ++j ) in test()
42 check_deduction(mat<float,Rows,Cols>(),zero_mat<float,Rows,Cols>()); in test()
43 check_deduction(mat<int,Rows,Cols>(),zero_mat<int,Rows,Cols>()); in test()
Dminus_mm_test.cpp17 template <int Rows,int Cols>
22 test_qvm::matrix<M1,Rows,Cols> const x(42,2); in test()
24 test_qvm::matrix<M1,Rows,Cols> const y(42,1); in test()
26 test_qvm::matrix<M1,Rows,Cols> r=x-y; in test()
31 test_qvm::matrix<M1,Rows,Cols> const y(42,1); in test()
32 test_qvm::matrix<M2,Rows,Cols> r=mref(x)-y; in test()
37 test_qvm::matrix<M1,Rows,Cols> const y(42,1); in test()
38 test_qvm::matrix<M2,Rows,Cols> r=x-mref(y); in test()
Dplus_mm_test.cpp17 template <int Rows,int Cols>
22 test_qvm::matrix<M1,Rows,Cols> const x(42,2); in test()
24 test_qvm::matrix<M1,Rows,Cols> const y(42,1); in test()
26 test_qvm::matrix<M1,Rows,Cols> r=x+y; in test()
31 test_qvm::matrix<M1,Rows,Cols> const y(42,1); in test()
32 test_qvm::matrix<M2,Rows,Cols> r=mref(x)+y; in test()
37 test_qvm::matrix<M1,Rows,Cols> const y(42,1); in test()
38 test_qvm::matrix<M2,Rows,Cols> r=x+mref(y); in test()
Ddel_col_test.cpp16 template <int Rows,int Cols,int Col>
21 test_qvm::matrix<M1,Rows,Cols> x(42,1); in test()
22 float r1[Rows][Cols-1]; in test()
24 for( int j=0; j!=Cols-1; ++j ) in test()
26 float r2[Rows][Cols-1]; in test()
31 for( int j=0; j!=Cols-1; ++j ) in test()
Ddel_row_test.cpp16 template <int Rows,int Cols,int Row>
21 test_qvm::matrix<M1,Rows,Cols> x(42,1); in test()
22 float r1[Rows-1][Cols]; in test()
24 for( int j=0; j!=Cols; ++j ) in test()
26 float r2[Rows-1][Cols]; in test()
31 for( int j=0; j!=Cols; ++j ) in test()
Deq_mm_test.cpp12 template <int Rows,int Cols>
17 test_qvm::matrix<M1,Rows,Cols> const x(42,1); in test()
19 for( int j=0; j!=Cols; ++j ) in test()
22 test_qvm::matrix<M1,Rows,Cols> y(x); in test()
28 test_qvm::matrix<M2,Rows,Cols> y; assign(y,x); in test()
Dneg_row_test.cpp16 template <int Rows,int Cols,int Row>
21 test_qvm::matrix<M1,Rows,Cols> x(42,1); in test()
22 float r1[Rows][Cols]; in test()
24 for( int j=0; j!=Cols; ++j ) in test()
26 float r2[Rows][Cols]; in test()
Dneg_col_test.cpp16 template <int Rows,int Cols,int Col>
21 test_qvm::matrix<M1,Rows,Cols> x(42,1); in test()
22 float r1[Rows][Cols]; in test()
24 for( int j=0; j!=Cols; ++j ) in test()
26 float r2[Rows][Cols]; in test()
Dtranspose_test.cpp15 template <int Rows,int Cols>
20 test_qvm::matrix<M1,Rows,Cols> x(42,1); in test()
21 float r1[Cols][Rows]; in test()
23 for( int j=0; j!=Cols; ++j ) in test()
25 float r2[Cols][Rows]; in test()
Drow_test.cpp17 template <int Rows,int Cols,int Row>
22 test_qvm::matrix<M1,Rows,Cols> x(42,1); in test()
23 float r1[Cols]; in test()
24 for( int i=0; i!=Cols; ++i ) in test()
26 float r2[Cols]; in test()
30 for( int i=0; i!=Cols; ++i ) in test()
Ddel_row_col_test.cpp16 template <int Rows,int Cols,int Row,int Col>
21 test_qvm::matrix<M1,Rows,Cols> x(42,1); in test()
22 float r1[Rows-1][Cols-1]; in test()
24 for( int j=0; j!=Cols-1; ++j ) in test()
26 float r2[Rows-1][Cols-1]; in test()
31 for( int j=0; j!=Cols-1; ++j ) in test()
Dswap_cols_test.cpp16 template <int Rows,int Cols,int C1,int C2>
21 test_qvm::matrix<M1,Rows,Cols> x(42,1); in test()
22 float r1[Rows][Cols]; in test()
24 for( int j=0; j!=Cols; ++j ) in test()
26 float r2[Rows][Cols]; in test()
31 for( int j=0; j!=Cols; ++j ) in test()
/third_party/boost/boost/qvm/
Dmat_traits_array.hpp29 template <class T,int Rows,int Cols>
31 mat_traits<T[Rows][Cols]>
33 typedef T this_matrix[Rows][Cols];
36 static int const cols=Cols;
47 BOOST_QVM_STATIC_ASSERT(Col<Cols); in read_element()
60 BOOST_QVM_STATIC_ASSERT(Col<Cols); in write_element()
72 BOOST_QVM_ASSERT(col<Cols); in read_element_idx()
84 BOOST_QVM_ASSERT(col<Cols); in write_element_idx()
89 template <class T,int Rows,int Cols,int R,int C>
91 deduce_mat<T[Rows][Cols],R,C>
[all …]
Dmat.hpp19 template <class T,int Rows,int Cols>
23 T a[Rows][Cols];
36 template <class T,int Rows,int Cols>
38 mat_traits< mat<T,Rows,Cols> >
40 typedef mat<T,Rows,Cols> this_matrix;
43 static int const cols=Cols;
54 BOOST_QVM_STATIC_ASSERT(Col<Cols); in read_element()
67 BOOST_QVM_STATIC_ASSERT(Col<Cols); in write_element()
79 BOOST_QVM_ASSERT(col<Cols); in read_element_idx()
91 BOOST_QVM_ASSERT(col<Cols); in write_element_idx()
/third_party/typescript/tests/baselines/reference/
DkeyofInferenceLowerPriorityThanReturn.types32 declare class ConflictTarget<Cols> {
33 >ConflictTarget : ConflictTarget<Cols>
35 public static tableColumns<Cols>(cols: (keyof Cols)[]): ConflictTarget<Cols>;
36 >tableColumns : <Cols>(cols: (keyof Cols)[]) => ConflictTarget<Cols>
37 >cols : (keyof Cols)[]
39 protected dummy: [ConflictTarget<Cols>, Cols];
40 >dummy : [ConflictTarget<Cols>, Cols]
86 >ConflictTarget.tableColumns : <Cols>(cols: (keyof Cols)[]) => ConflictTarget<Cols>
88 >tableColumns : <Cols>(cols: (keyof Cols)[]) => ConflictTarget<Cols>
DkeyofInferenceLowerPriorityThanReturn.symbols63 declare class ConflictTarget<Cols> {
65 >Cols : Symbol(Cols, Decl(keyofInferenceLowerPriorityThanReturn.ts, 19, 29))
67 public static tableColumns<Cols>(cols: (keyof Cols)[]): ConflictTarget<Cols>;
69 >Cols : Symbol(Cols, Decl(keyofInferenceLowerPriorityThanReturn.ts, 20, 31))
71 >Cols : Symbol(Cols, Decl(keyofInferenceLowerPriorityThanReturn.ts, 20, 31))
73 >Cols : Symbol(Cols, Decl(keyofInferenceLowerPriorityThanReturn.ts, 20, 31))
75 protected dummy: [ConflictTarget<Cols>, Cols];
78 >Cols : Symbol(Cols, Decl(keyofInferenceLowerPriorityThanReturn.ts, 19, 29))
79 >Cols : Symbol(Cols, Decl(keyofInferenceLowerPriorityThanReturn.ts, 19, 29))
DkeyofInferenceLowerPriorityThanReturn.js21 declare class ConflictTarget<Cols> {
22 public static tableColumns<Cols>(cols: (keyof Cols)[]): ConflictTarget<Cols>;
23 protected dummy: [ConflictTarget<Cols>, Cols];
/third_party/skia/third_party/externals/spirv-cross/reference/opt/shaders-msl/vert/
Dno-contraction.vert26 template<typename T, int Cols, int Rows>
27 vec<T, Cols> spvFMulVectorMatrix(vec<T, Rows> v, matrix<T, Cols, Rows> m)
29 vec<T, Cols> res = vec<T, Cols>(0);
32 vec<T, Cols> tmp(0);
33 for (uint j = 0; j < Cols; ++j)
37 res = fma(tmp, vec<T, Cols>(v[i - 1]), res);
42 template<typename T, int Cols, int Rows>
43 vec<T, Rows> spvFMulMatrixVector(matrix<T, Cols, Rows> m, vec<T, Cols> v)
46 for (uint i = Cols; i > 0; --i)
Dfloat-math.invariant-float-math.vert77 template<typename T, int Cols, int Rows>
78 vec<T, Cols> spvFMulVectorMatrix(vec<T, Rows> v, matrix<T, Cols, Rows> m)
80 vec<T, Cols> res = vec<T, Cols>(0);
83 vec<T, Cols> tmp(0);
84 for (uint j = 0; j < Cols; ++j)
88 res = fma(tmp, vec<T, Cols>(v[i - 1]), res);
93 template<typename T, int Cols, int Rows>
94 vec<T, Rows> spvFMulMatrixVector(matrix<T, Cols, Rows> m, vec<T, Cols> v)
97 for (uint i = Cols; i > 0; --i)
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl/vert/
Dno-contraction.vert26 template<typename T, int Cols, int Rows>
27 vec<T, Cols> spvFMulVectorMatrix(vec<T, Rows> v, matrix<T, Cols, Rows> m)
29 vec<T, Cols> res = vec<T, Cols>(0);
32 vec<T, Cols> tmp(0);
33 for (uint j = 0; j < Cols; ++j)
37 res = fma(tmp, vec<T, Cols>(v[i - 1]), res);
42 template<typename T, int Cols, int Rows>
43 vec<T, Rows> spvFMulMatrixVector(matrix<T, Cols, Rows> m, vec<T, Cols> v)
46 for (uint i = Cols; i > 0; --i)
Dfloat-math.invariant-float-math.vert77 template<typename T, int Cols, int Rows>
78 vec<T, Cols> spvFMulVectorMatrix(vec<T, Rows> v, matrix<T, Cols, Rows> m)
80 vec<T, Cols> res = vec<T, Cols>(0);
83 vec<T, Cols> tmp(0);
84 for (uint j = 0; j < Cols; ++j)
88 res = fma(tmp, vec<T, Cols>(v[i - 1]), res);
93 template<typename T, int Cols, int Rows>
94 vec<T, Rows> spvFMulMatrixVector(matrix<T, Cols, Rows> m, vec<T, Cols> v)
97 for (uint i = Cols; i > 0; --i)
/third_party/skia/third_party/externals/dng_sdk/source/
Ddng_matrix.cpp114 Cols () != m.Cols ()) in operator ==()
122 for (uint32 k = 0; k < Cols (); k++) in operator ==()
148 if (Rows () != Cols ()) in IsDiagonal()
154 for (uint32 k = 0; k < Cols (); k++) in IsDiagonal()
188 for (uint32 k = 0; k < Cols (); k++) in MaxEntry()
214 for (uint32 k = 0; k < Cols (); k++) in MinEntry()
231 for (uint32 k = 0; k < Cols (); k++) in Scale()
248 for (uint32 k = 0; k < Cols (); k++) in Round()
273 for (uint32 k = 0; k < Cols (); k++) in SafeRound()
308 Cols () != 3) in dng_matrix_3by3()
[all …]
/third_party/typescript/tests/cases/conformance/types/typeRelationships/typeInference/
DkeyofInferenceLowerPriorityThanReturn.ts20 declare class ConflictTarget<Cols> {
21 public static tableColumns<Cols>(cols: (keyof Cols)[]): ConflictTarget<Cols>;
22 protected dummy: [ConflictTarget<Cols>, Cols];

123