Lines Matching full:rows
471 template <typename T, int Rows, int Cols>
472 struct Traits<Matrix<T, Rows, Cols> > :
473 ContainerTraits<Matrix<T, Rows, Cols>, Matrix<typename Traits<T>::IVal, Rows, Cols> >
900 template <typename T, int Rows, int Cols>
901 class ExprP<Matrix<T, Rows, Cols> > : public ContainerExprPBase<Matrix<T, Rows, Cols> > {};
974 template<int Rows, int Cols>
975 ExprP<Vector<float, Rows> > operator* (const ExprP<Vector<float, Cols> >& left,
976 const ExprP<Matrix<float, Rows, Cols> >& right);
977 template<int Rows, int Cols>
978 ExprP<Vector<float, Cols> > operator* (const ExprP<Matrix<float, Rows, Cols> >& left,
979 const ExprP<Vector<float, Rows> >& right);
980 template<int Rows, int Cols>
981 ExprP<Matrix<float, Rows, Cols> > operator* (const ExprP<Matrix<float, Rows, Cols> >& left,
983 template<int Rows, int Cols>
984 ExprP<Matrix<float, Rows, Cols> > operator+ (const ExprP<Matrix<float, Rows, Cols> >& left,
985 const ExprP<Matrix<float, Rows, Cols> >& right);
986 template<int Rows, int Cols>
987 ExprP<Matrix<float, Rows, Cols> > operator- (const ExprP<Matrix<float, Rows, Cols> >& mat);
2522 template <typename T, int Rows, int Columns>
2525 template <typename T, int Rows>
2526 class GenMat<T, Rows, 2> : public PrimitiveFunc<
2527 Signature<Matrix<T, Rows, 2>, Vector<T, Rows>, Vector<T, Rows> > >
2550 template <typename T, int Rows>
2551 class GenMat<T, Rows, 3> : public PrimitiveFunc<
2552 Signature<Matrix<T, Rows, 3>, Vector<T, Rows>, Vector<T, Rows>, Vector<T, Rows> > >
2576 template <typename T, int Rows>
2577 class GenMat<T, Rows, 4> : public PrimitiveFunc<
2578 Signature<Matrix<T, Rows, 4>,
2579 Vector<T, Rows>, Vector<T, Rows>, Vector<T, Rows>, Vector<T, Rows> > >
2603 template <typename T, int Rows>
2604 ExprP<Matrix<T, Rows, 2> > mat2 (const ExprP<Vector<T, Rows> >& arg0,
2605 const ExprP<Vector<T, Rows> >& arg1)
2607 return app<GenMat<T, Rows, 2> >(arg0, arg1);
2610 template <typename T, int Rows>
2611 ExprP<Matrix<T, Rows, 3> > mat3 (const ExprP<Vector<T, Rows> >& arg0,
2612 const ExprP<Vector<T, Rows> >& arg1,
2613 const ExprP<Vector<T, Rows> >& arg2)
2615 return app<GenMat<T, Rows, 3> >(arg0, arg1, arg2);
2618 template <typename T, int Rows>
2619 ExprP<Matrix<T, Rows, 4> > mat4 (const ExprP<Vector<T, Rows> >& arg0,
2620 const ExprP<Vector<T, Rows> >& arg1,
2621 const ExprP<Vector<T, Rows> >& arg2,
2622 const ExprP<Vector<T, Rows> >& arg3)
2624 return app<GenMat<T, Rows, 4> >(arg0, arg1, arg2, arg3);
2628 template <int Rows, int Cols>
2629 class MatNeg : public PrimitiveFunc<Signature<Matrix<float, Rows, Cols>,
2630 Matrix<float, Rows, Cols> > >
2653 for (int row = 0; row < Rows; ++row)
2682 template <int Rows, int Cols>
2683 class CompMatFuncBase : public CompWiseFunc<float, Signature<Matrix<float, Rows, Cols>,
2684 Matrix<float, Rows, Cols>,
2685 Matrix<float, Rows, Cols> > >
2699 for (int row = 0; row < Rows; ++row)
2709 template <typename F, int Rows, int Cols>
2710 class CompMatFunc : public CompMatFuncBase<Rows, Cols>
2733 template <int Rows, int Cols>
2734 class MatrixCompMult : public CompMatFunc<ScalarMatrixCompMult, Rows, Cols>
2738 template <int Rows, int Cols>
2739 class ScalarMatFuncBase : public CompWiseFunc<float, Signature<Matrix<float, Rows, Cols>,
2740 Matrix<float, Rows, Cols>,
2755 for (int row = 0; row < Rows; ++row)
2763 template <typename F, int Rows, int Cols>
2764 class ScalarMatFunc : public ScalarMatFuncBase<Rows, Cols>
3285 template<int Rows, int Columns>
3286 class Transpose : public PrimitiveFunc<Signature<Matrix<float, Rows, Columns>,
3287 Matrix<float, Columns, Rows> > >
3303 for (int rowNdx = 0; rowNdx < Rows; ++rowNdx)
3361 template<int Rows, int Cols>
3363 Vector<float, Rows>,
3364 Matrix<float, Rows, Cols> >
3383 for (int row = 0; row < Rows; ++row)
3393 template<int Rows, int Cols>
3394 class MatVecMul : public MulFunc<Vector<float, Rows>,
3395 Matrix<float, Rows, Cols>,
3410 return call<VecMatMul<Cols, Rows> >(ctx, right,
3411 call<Transpose<Rows, Cols> >(ctx, left));
3415 template<int Rows, int Cols>
3416 class OuterProduct : public PrimitiveFunc<Signature<Matrix<float, Rows, Cols>,
3417 Vector<float, Rows>,
3434 for (int row = 0; row < Rows; ++row)
3444 template<int Rows, int Cols>
3445 ExprP<Matrix<float, Rows, Cols> > outerProduct (const ExprP<Vector<float, Rows> >& left,
3448 return app<OuterProduct<Rows, Cols> >(left, right);
3870 template<int Rows, int Cols>
3871 ExprP<Vector<float, Rows> > operator* (const ExprP<Vector<float, Cols> >& left,
3872 const ExprP<Matrix<float, Rows, Cols> >& right)
3874 return app<VecMatMul<Rows, Cols> >(left, right);
3877 template<int Rows, int Cols>
3878 ExprP<Vector<float, Cols> > operator* (const ExprP<Matrix<float, Rows, Cols> >& left,
3879 const ExprP<Vector<float, Rows> >& right)
3881 return app<MatVecMul<Rows, Cols> >(left, right);
3884 template<int Rows, int Cols>
3885 ExprP<Matrix<float, Rows, Cols> > operator* (const ExprP<Matrix<float, Rows, Cols> >& left,
3888 return app<ScalarMatFunc<Mul, Rows, Cols> >(left, right);
3891 template<int Rows, int Cols>
3892 ExprP<Matrix<float, Rows, Cols> > operator+ (const ExprP<Matrix<float, Rows, Cols> >& left,
3893 const ExprP<Matrix<float, Rows, Cols> >& right)
3895 return app<CompMatFunc<Add, Rows, Cols> >(left, right);
3898 template<int Rows, int Cols>
3899 ExprP<Matrix<float, Rows, Cols> > operator- (const ExprP<Matrix<float, Rows, Cols> >& mat)
3901 return app<MatNeg<Rows, Cols> >(mat);
4115 template <typename T, int Rows, int Columns>
4116 class DefaultSampling<Matrix<T, Rows, Columns> > : public Sampling<Matrix<T, Rows, Columns> >
4119 typedef Matrix<T, Rows, Columns> Value;
4125 for (int rowNdx = 0; rowNdx < Rows; ++rowNdx)
4141 if (Columns == Rows)
4157 return dePow(instance<DefaultSampling<T> >().getWeight(), Rows * Columns);
4604 template <typename T, int Rows, int Cols>
4605 struct InputLess<Matrix<T, Rows, Cols> >
4607 bool operator() (const Matrix<T, Rows, Cols>& mat1,
4608 const Matrix<T, Rows, Cols>& mat2) const
5003 template <int Rows, int Cols>
5006 const char* const name = dataTypeNameOf<Matrix<float, Rows, Cols> >();
5008 group->addChild(createFuncCase(ctx, name, instance<GenF<Rows, Cols> >()));