Lines Matching refs:Rows
504 template <typename T, int Rows, int Cols>
505 struct Traits<Matrix<T, Rows, Cols> > :
506 ContainerTraits<Matrix<T, Rows, Cols>, Matrix<typename Traits<T>::IVal, Rows, Cols> >
934 template <typename T, int Rows, int Cols>
935 class ExprP<Matrix<T, Rows, Cols> > : public ContainerExprPBase<Matrix<T, Rows, Cols> > {};
1008 template<int Rows, int Cols>
1009 ExprP<Vector<float, Rows> > operator* (const ExprP<Vector<float, Cols> >& left,
1010 const ExprP<Matrix<float, Rows, Cols> >& right);
1011 template<int Rows, int Cols>
1012 ExprP<Vector<float, Cols> > operator* (const ExprP<Matrix<float, Rows, Cols> >& left,
1013 const ExprP<Vector<float, Rows> >& right);
1014 template<int Rows, int Cols>
1015 ExprP<Matrix<float, Rows, Cols> > operator* (const ExprP<Matrix<float, Rows, Cols> >& left,
1017 template<int Rows, int Cols>
1018 ExprP<Matrix<float, Rows, Cols> > operator+ (const ExprP<Matrix<float, Rows, Cols> >& left,
1019 const ExprP<Matrix<float, Rows, Cols> >& right);
1020 template<int Rows, int Cols>
1021 ExprP<Matrix<float, Rows, Cols> > operator- (const ExprP<Matrix<float, Rows, Cols> >& mat);
2656 template <typename T, int Rows, int Columns>
2659 template <typename T, int Rows>
2660 class GenMat<T, Rows, 2> : public PrimitiveFunc<
2661 Signature<Matrix<T, Rows, 2>, Vector<T, Rows>, Vector<T, Rows> > >
2684 template <typename T, int Rows>
2685 class GenMat<T, Rows, 3> : public PrimitiveFunc<
2686 Signature<Matrix<T, Rows, 3>, Vector<T, Rows>, Vector<T, Rows>, Vector<T, Rows> > >
2710 template <typename T, int Rows>
2711 class GenMat<T, Rows, 4> : public PrimitiveFunc<
2712 Signature<Matrix<T, Rows, 4>,
2713 Vector<T, Rows>, Vector<T, Rows>, Vector<T, Rows>, Vector<T, Rows> > >
2737 template <typename T, int Rows>
2738 ExprP<Matrix<T, Rows, 2> > mat2 (const ExprP<Vector<T, Rows> >& arg0,
2739 const ExprP<Vector<T, Rows> >& arg1)
2741 return app<GenMat<T, Rows, 2> >(arg0, arg1);
2744 template <typename T, int Rows>
2745 ExprP<Matrix<T, Rows, 3> > mat3 (const ExprP<Vector<T, Rows> >& arg0,
2746 const ExprP<Vector<T, Rows> >& arg1,
2747 const ExprP<Vector<T, Rows> >& arg2)
2749 return app<GenMat<T, Rows, 3> >(arg0, arg1, arg2);
2752 template <typename T, int Rows>
2753 ExprP<Matrix<T, Rows, 4> > mat4 (const ExprP<Vector<T, Rows> >& arg0,
2754 const ExprP<Vector<T, Rows> >& arg1,
2755 const ExprP<Vector<T, Rows> >& arg2,
2756 const ExprP<Vector<T, Rows> >& arg3)
2758 return app<GenMat<T, Rows, 4> >(arg0, arg1, arg2, arg3);
2762 template <int Rows, int Cols>
2763 class MatNeg : public PrimitiveFunc<Signature<Matrix<float, Rows, Cols>,
2764 Matrix<float, Rows, Cols> > >
2787 for (int row = 0; row < Rows; ++row)
2816 template <int Rows, int Cols>
2817 class CompMatFuncBase : public CompWiseFunc<float, Signature<Matrix<float, Rows, Cols>,
2818 Matrix<float, Rows, Cols>,
2819 Matrix<float, Rows, Cols> > >
2833 for (int row = 0; row < Rows; ++row)
2843 template <typename F, int Rows, int Cols>
2844 class CompMatFunc : public CompMatFuncBase<Rows, Cols>
2867 template <int Rows, int Cols>
2868 class MatrixCompMult : public CompMatFunc<ScalarMatrixCompMult, Rows, Cols>
2872 template <int Rows, int Cols>
2873 class ScalarMatFuncBase : public CompWiseFunc<float, Signature<Matrix<float, Rows, Cols>,
2874 Matrix<float, Rows, Cols>,
2889 for (int row = 0; row < Rows; ++row)
2897 template <typename F, int Rows, int Cols>
2898 class ScalarMatFunc : public ScalarMatFuncBase<Rows, Cols>
3570 template<int Rows, int Columns>
3571 class Transpose : public PrimitiveFunc<Signature<Matrix<float, Rows, Columns>,
3572 Matrix<float, Columns, Rows> > >
3588 for (int rowNdx = 0; rowNdx < Rows; ++rowNdx)
3646 template<int Rows, int Cols>
3648 Vector<float, Rows>,
3649 Matrix<float, Rows, Cols> >
3668 for (int row = 0; row < Rows; ++row)
3678 template<int Rows, int Cols>
3679 class MatVecMul : public MulFunc<Vector<float, Rows>,
3680 Matrix<float, Rows, Cols>,
3695 return call<VecMatMul<Cols, Rows> >(ctx, right,
3696 call<Transpose<Rows, Cols> >(ctx, left));
3700 template<int Rows, int Cols>
3701 class OuterProduct : public PrimitiveFunc<Signature<Matrix<float, Rows, Cols>,
3702 Vector<float, Rows>,
3719 for (int row = 0; row < Rows; ++row)
3729 template<int Rows, int Cols>
3730 ExprP<Matrix<float, Rows, Cols> > outerProduct (const ExprP<Vector<float, Rows> >& left,
3733 return app<OuterProduct<Rows, Cols> >(left, right);
4155 template<int Rows, int Cols>
4156 ExprP<Vector<float, Rows> > operator* (const ExprP<Vector<float, Cols> >& left,
4157 const ExprP<Matrix<float, Rows, Cols> >& right)
4159 return app<VecMatMul<Rows, Cols> >(left, right);
4162 template<int Rows, int Cols>
4163 ExprP<Vector<float, Cols> > operator* (const ExprP<Matrix<float, Rows, Cols> >& left,
4164 const ExprP<Vector<float, Rows> >& right)
4166 return app<MatVecMul<Rows, Cols> >(left, right);
4169 template<int Rows, int Cols>
4170 ExprP<Matrix<float, Rows, Cols> > operator* (const ExprP<Matrix<float, Rows, Cols> >& left,
4173 return app<ScalarMatFunc<Mul, Rows, Cols> >(left, right);
4176 template<int Rows, int Cols>
4177 ExprP<Matrix<float, Rows, Cols> > operator+ (const ExprP<Matrix<float, Rows, Cols> >& left,
4178 const ExprP<Matrix<float, Rows, Cols> >& right)
4180 return app<CompMatFunc<Add, Rows, Cols> >(left, right);
4183 template<int Rows, int Cols>
4184 ExprP<Matrix<float, Rows, Cols> > operator- (const ExprP<Matrix<float, Rows, Cols> >& mat)
4186 return app<MatNeg<Rows, Cols> >(mat);
4400 template <typename T, int Rows, int Columns>
4401 class DefaultSampling<Matrix<T, Rows, Columns> > : public Sampling<Matrix<T, Rows, Columns> >
4404 typedef Matrix<T, Rows, Columns> Value;
4410 for (int rowNdx = 0; rowNdx < Rows; ++rowNdx)
4426 if (Columns == Rows)
4442 return dePow(instance<DefaultSampling<T> >().getWeight(), Rows * Columns);
4938 template <typename T, int Rows, int Cols>
4939 struct InputLess<Matrix<T, Rows, Cols> >
4941 bool operator() (const Matrix<T, Rows, Cols>& mat1,
4942 const Matrix<T, Rows, Cols>& mat2) const
5338 template <int Rows, int Cols>
5341 const char* const name = dataTypeNameOf<Matrix<float, Rows, Cols> >();
5343 group->addChild(createFuncCase(ctx, name, instance<GenF<Rows, Cols> >()));