Lines Matching refs:ExprP

537 template <typename T> class ExprP;
709 VariableStatement (const VariableP<T>& variable, const ExprP<T>& value, in VariableStatement()
740 ExprP<T> m_value;
746 const ExprP<T>& value, in variableStatement()
753 StatementP variableDeclaration (const VariableP<T>& variable, const ExprP<T>& definiens) in variableDeclaration()
759 StatementP variableAssignment (const VariableP<T>& variable, const ExprP<T>& value) in variableAssignment()
888 ExprP<typename T::Element> operator[] (int i) const;
892 class ExprP : public ExprPBase<T> {}; class
897 class ExprP<Void> : public ContainerExprPBase<Void> {}; class
900 class ExprP<Vector<T, Size> > : public ContainerExprPBase<Vector<T, Size> > {}; class
903 class ExprP<Matrix<T, Rows, Cols> > : public ContainerExprPBase<Matrix<T, Rows, Cols> > {}; class
905 template <typename T> ExprP<T> exprP (void) in exprP()
907 return ExprP<T>(); in exprP()
911 ExprP<T> exprP (const SharedPtr<const Expr<T> >& ptr) in exprP()
913 ExprP<T> ret; in exprP()
919 ExprP<T> exprP (const Expr<T>* ptr) in exprP()
940 operator ExprP<T> (void) const { return exprP(SharedPtr<const Expr<T> >(*this)); } in operator ExprP<T>()
953 ExprP<float> operator-(const ExprP<float>& arg0);
954 ExprP<float> operator+(const ExprP<float>& arg0,
955 const ExprP<float>& arg1);
956 ExprP<float> operator-(const ExprP<float>& arg0,
957 const ExprP<float>& arg1);
958 ExprP<float> operator*(const ExprP<float>& arg0,
959 const ExprP<float>& arg1);
960 ExprP<float> operator/(const ExprP<float>& arg0,
961 const ExprP<float>& arg1);
963 ExprP<Vector<float, Size> > operator-(const ExprP<Vector<float, Size> >& arg0);
965 ExprP<Vector<float, Size> > operator*(const ExprP<Vector<float, Size> >& arg0,
966 const ExprP<float>& arg1);
968 ExprP<Vector<float, Size> > operator*(const ExprP<Vector<float, Size> >& arg0,
969 const ExprP<Vector<float, Size> >& arg1);
971 ExprP<Vector<float, Size> > operator-(const ExprP<Vector<float, Size> >& arg0,
972 const ExprP<Vector<float, Size> >& arg1);
974 ExprP<Matrix<float, Left, Right> > operator* (const ExprP<Matrix<float, Left, Mid> >& left,
975 const ExprP<Matrix<float, Mid, Right> >& right);
977 ExprP<Vector<float, Rows> > operator* (const ExprP<Vector<float, Cols> >& left,
978 const ExprP<Matrix<float, Rows, Cols> >& right);
980 ExprP<Vector<float, Cols> > operator* (const ExprP<Matrix<float, Rows, Cols> >& left,
981 const ExprP<Vector<float, Rows> >& right);
983 ExprP<Matrix<float, Rows, Cols> > operator* (const ExprP<Matrix<float, Rows, Cols> >& left,
984 const ExprP<float>& right);
986 ExprP<Matrix<float, Rows, Cols> > operator+ (const ExprP<Matrix<float, Rows, Cols> >& left,
987 const ExprP<Matrix<float, Rows, Cols> >& right);
989 ExprP<Matrix<float, Rows, Cols> > operator- (const ExprP<Matrix<float, Rows, Cols> >& mat);
1026 VariableP<T> bindExpression (const string& name, ExpandContext& ctx, const ExprP<T>& expr) in bindExpression()
1056 ExprP<T> constant (const T& value) in constant()
1062 const ExprP<Void>& voidP (void) in voidP()
1064 static const ExprP<Void> singleton = constant(Void()); in voidP()
1123 typedef Tuple4< ExprP<Arg0>, ExprP<Arg1>, ExprP<Arg2>, ExprP<Arg3> > ArgExprs;
1209 ExprP<Ret> operator() (const ExprP<Arg0>& arg0 = voidP(),
1210 const ExprP<Arg1>& arg1 = voidP(),
1211 const ExprP<Arg2>& arg2 = voidP(),
1212 const ExprP<Arg3>& arg3 = voidP()) const;
1263 const ExprP<Arg0>& arg0 = voidP(), in Apply()
1264 const ExprP<Arg1>& arg1 = voidP(), in Apply()
1265 const ExprP<Arg2>& arg2 = voidP(), in Apply()
1266 const ExprP<Arg3>& arg3 = voidP()) in Apply()
1331 ExprP<typename Sig::Ret> createApply (const Func<Sig>& func, in createApply()
1338 ExprP<typename Sig::Ret> createApply ( in createApply()
1340 const ExprP<typename Sig::Arg0>& arg0 = voidP(), in createApply()
1341 const ExprP<typename Sig::Arg1>& arg1 = voidP(), in createApply()
1342 const ExprP<typename Sig::Arg2>& arg2 = voidP(), in createApply()
1343 const ExprP<typename Sig::Arg3>& arg3 = voidP()) in createApply()
1349 ExprP<typename Sig::Ret> Func<Sig>::operator() (const ExprP<typename Sig::Arg0>& arg0, in operator ()()
1350 const ExprP<typename Sig::Arg1>& arg1, in operator ()()
1351 const ExprP<typename Sig::Arg2>& arg2, in operator ()()
1352 const ExprP<typename Sig::Arg3>& arg3) const in operator ()()
1358 ExprP<typename F::Ret> app (const ExprP<typename F::Arg0>& arg0 = voidP(), in app()
1359 const ExprP<typename F::Arg1>& arg1 = voidP(), in app()
1360 const ExprP<typename F::Arg2>& arg2 = voidP(), in app()
1361 const ExprP<typename F::Arg3>& arg3 = voidP()) in app()
1377 ExprP<T> alternatives (const ExprP<T>& arg0, in alternatives()
1378 const ExprP<T>& arg1) in alternatives()
1417 ExprP<typename Sig::Ret> applyVar (const Func<Sig>& func, in applyVar()
1511 virtual ExprP<Ret> doExpand (ExpandContext& ctx, const ArgExprs& args_) const = 0;
1522 mutable ExprP<Ret> m_ret;
1646 ExprP<bool> operator< (const ExprP<T>& a, const ExprP<T>& b) in operator <()
1652 ExprP<T> cond (const ExprP<bool>& test, in cond()
1653 const ExprP<T>& consequent, in cond()
1654 const ExprP<T>& alternative) in cond()
2107 ExprP<float> exp2 (const ExprP<float>& x) { return app<Exp2>(x); } in exp2()
2108 ExprP<float> exp (const ExprP<float>& x) { return app<Exp>(x); } in exp()
2141 ExprP<float> log2 (const ExprP<float>& x) { return app<Log2>(x); } in log2()
2142 ExprP<float> log (const ExprP<float>& x) { return app<Log>(x); } in log()
2145 ExprP<TRET> NAME (const ExprP<T0>& arg0) { return app<CLASS>(arg0); }
2154 ExprP<TRET> doExpand (ExpandContext&, \
2157 const ExprP<float>& ARG0 = args_.a; \
2167 ExprP<TRET> NAME (const ExprP<T0>& arg0, const ExprP<T1>& arg1) \
2179 ExprP<TRET> doExpand (ExpandContext&, const ArgExprs& args_) const \
2181 const ExprP<T0>& Arg0 = args_.a; \
2182 const ExprP<T1>& Arg1 = args_.b; \
2192 ExprP<TRET> NAME (const ExprP<T0>& arg0, const ExprP<T1>& arg1, const ExprP<T2>& arg2) \
2204 ExprP<TRET> doExpand (ExpandContext&, const ArgExprs& args_) const \
2206 const ExprP<T0>& ARG0 = args_.a; \
2207 const ExprP<T1>& ARG1 = args_.b; \
2208 const ExprP<T2>& ARG2 = args_.c; \
2218 ExprP<TRET> NAME (const ExprP<T0>& arg0, const ExprP<T1>& arg1, \
2219 const ExprP<T2>& arg2, const ExprP<T3>& arg3) \
2334 ExprP<float> sin (const ExprP<float>& x) { return app<Sin>(x); } in sin()
2345 ExprP<float> cos (const ExprP<float>& x) { return app<Cos>(x); } in cos()
2513 ExprP<typename T::Element> getComponent (const ExprP<T>& container, int ndx) in getComponent()
2542 ExprP<T> doExpand (ExpandContext&, const ArgExprs& args) const { return args.a; } in doExpand()
2683 ExprP<Matrix<T, Rows, 2> > mat2 (const ExprP<Vector<T, Rows> >& arg0, in mat2()
2684 const ExprP<Vector<T, Rows> >& arg1) in mat2()
2690 ExprP<Matrix<T, Rows, 3> > mat3 (const ExprP<Vector<T, Rows> >& arg0, in mat3()
2691 const ExprP<Vector<T, Rows> >& arg1, in mat3()
2692 const ExprP<Vector<T, Rows> >& arg2) in mat3()
2698 ExprP<Matrix<T, Rows, 4> > mat4 (const ExprP<Vector<T, Rows> >& arg0, in mat4()
2699 const ExprP<Vector<T, Rows> >& arg1, in mat4()
2700 const ExprP<Vector<T, Rows> >& arg2, in mat4()
2701 const ExprP<Vector<T, Rows> >& arg3) in mat4()
2857 static ExprP<T> genXType (const ExprP<T>& x) { return x; } in genXType()
2863 static ExprP<Vector<T, 2> > genXType (const ExprP<T>& x) in genXType()
2872 static ExprP<Vector<T, 3> > genXType (const ExprP<T>& x) in genXType()
2881 static ExprP<Vector<T, 4> > genXType (const ExprP<T>& x) in genXType()
2890 ExprP<typename ContainerOf<T, Size>::Container> genXType (const ExprP<T>& x) in genXType()
2916 ExprP<float> doExpand (ExpandContext&, const ArgExprs& args) const in doExpand()
2918 ExprP<float> val = args.a[0] * args.b[0]; in doExpand()
2936 ExprP<float> doExpand (ExpandContext&, const ArgExprs& args) const in doExpand()
2943 ExprP<float> dot (const ExprP<Vector<float, Size> >& x, const ExprP<Vector<float, Size> >& y) in dot()
2948 ExprP<float> dot (const ExprP<float>& x, const ExprP<float>& y) in dot()
2966 ExprP<float> doExpand (ExpandContext&, const ArgExprs& args) const in doExpand()
2973 ExprP<float> length (const ExprP<typename ContainerOf<float, Size>::Container>& x) in length()
2994 ExprP<Ret> doExpand (ExpandContext&, const ArgExprs& args) const in doExpand()
3011 ExprP<Vec3> doExpand (ExpandContext&, const ArgExprs& x) const in doExpand()
3036 ExprP<Ret> doExpand (ExpandContext&, const ArgExprs& args) const in doExpand()
3061 ExprP<Ret> doExpand (ExpandContext&, const ArgExprs& args) const in doExpand()
3085 ExprP<Ret> doExpand (ExpandContext& ctx, const ArgExprs& args) const in doExpand()
3087 const ExprP<Arg0>& i = args.a; in doExpand()
3088 const ExprP<Arg1>& n = args.b; in doExpand()
3089 const ExprP<float> dotNI = bindExpression("dotNI", ctx, dot(n, i)); in doExpand()
3115 ExprP<Ret> doExpand (ExpandContext& ctx, const ArgExprs& args) const in doExpand()
3117 const ExprP<Arg0>& i = args.a; in doExpand()
3118 const ExprP<Arg1>& n = args.b; in doExpand()
3119 const ExprP<float>& eta = args.c; in doExpand()
3120 const ExprP<float> dotNI = bindExpression("dotNI", ctx, dot(n, i)); in doExpand()
3121 const ExprP<float> k = bindExpression("k", ctx, constant(1.0f) - eta * eta * in doExpand()
3263 ExprP<float> clamp(const ExprP<float>& x, const ExprP<float>& minVal, const ExprP<float>& maxVal) in clamp()
3288 ExprP<Ret> doExpand (ExpandContext& ctx, const ArgExprs& args) const in doExpand()
3290 const ExprP<float>& edge0 = args.a; in doExpand()
3291 const ExprP<float>& edge1 = args.b; in doExpand()
3292 const ExprP<float>& x = args.c; in doExpand()
3293 const ExprP<float> tExpr = clamp((x - edge0) / (edge1 - edge0), in doExpand()
3295 const ExprP<float> t = bindExpression("t", ctx, tExpr); in doExpand()
3540 ExprP<Matrix<float, Rows, Cols> > outerProduct (const ExprP<Vector<float, Rows> >& left, in outerProduct()
3541 const ExprP<Vector<float, Cols> >& right) in outerProduct()
3557 ExprP<float> determinant (ExprP<Matrix<float, Size, Size> > mat) in determinant()
3566 ExprP<Ret> doExpand (ExpandContext&, const ArgExprs& args) const in doExpand()
3568 ExprP<Mat2> mat = args.a; in doExpand()
3578 ExprP<Ret> doExpand (ExpandContext&, const ArgExprs& args) const in doExpand()
3580 ExprP<Mat3> mat = args.a; in doExpand()
3592 ExprP<Ret> doExpand (ExpandContext& ctx, const ArgExprs& args) const in doExpand()
3594 ExprP<Mat4> mat = args.a; in doExpand()
3595 ExprP<Mat3> minors[4]; in doExpand()
3599 ExprP<Vec4> minorColumns[3]; in doExpand()
3600 ExprP<Vec3> columns[3]; in doExpand()
3624 ExprP<Matrix<float, Size, Size> > inverse (ExprP<Matrix<float, Size, Size> > mat) in inverse()
3639 ExprP<Ret> doExpand (ExpandContext& ctx, const ArgExprs& args) const in doExpand()
3641 ExprP<Mat2> mat = args.a; in doExpand()
3642 ExprP<float> det = bindExpression("det", ctx, determinant(mat)); in doExpand()
3659 ExprP<Ret> doExpand (ExpandContext& ctx, const ArgExprs& args) const in doExpand()
3661 ExprP<Mat3> mat = args.a; in doExpand()
3662 ExprP<Mat2> invA = bindExpression("invA", ctx, in doExpand()
3666 ExprP<Vec2> matB = bindExpression("matB", ctx, vec2(mat[2][0], mat[2][1])); in doExpand()
3667 ExprP<Vec2> matC = bindExpression("matC", ctx, vec2(mat[0][2], mat[1][2])); in doExpand()
3668 ExprP<float> matD = bindExpression("matD", ctx, mat[2][2]); in doExpand()
3670 ExprP<float> schur = bindExpression("schur", ctx, in doExpand()
3674 ExprP<Vec2> t1 = invA * matB; in doExpand()
3675 ExprP<Vec2> t2 = t1 * schur; in doExpand()
3676 ExprP<Mat2> t3 = outerProduct(t2, matC); in doExpand()
3677 ExprP<Mat2> t4 = t3 * invA; in doExpand()
3678 ExprP<Mat2> t5 = invA + t4; in doExpand()
3679 ExprP<Mat2> blockA = bindExpression("blockA", ctx, t5); in doExpand()
3680 ExprP<Vec2> blockB = bindExpression("blockB", ctx, in doExpand()
3682 ExprP<Vec2> blockC = bindExpression("blockC", ctx, in doExpand()
3698 ExprP<Ret> doExpand (ExpandContext& ctx, in doExpand()
3701 ExprP<Mat4> mat = args.a; in doExpand()
3702 ExprP<Mat2> invA = bindExpression("invA", ctx, in doExpand()
3705 ExprP<Mat2> matB = bindExpression("matB", ctx, in doExpand()
3708 ExprP<Mat2> matC = bindExpression("matC", ctx, in doExpand()
3711 ExprP<Mat2> matD = bindExpression("matD", ctx, in doExpand()
3714 ExprP<Mat2> schur = bindExpression("schur", ctx, in doExpand()
3716 ExprP<Mat2> blockA = bindExpression("blockA", ctx, in doExpand()
3718 ExprP<Mat2> blockB = bindExpression("blockB", ctx, in doExpand()
3720 ExprP<Mat2> blockC = bindExpression("blockC", ctx, in doExpand()
3744 ExprP<float> doExpand (ExpandContext&, const ArgExprs& x) const in doExpand()
3755 ExprP<typename T::Element> ContainerExprPBase<T>::operator[] (int i) const in operator []()
3760 ExprP<float> operator+ (const ExprP<float>& arg0, const ExprP<float>& arg1) in operator +()
3765 ExprP<float> operator- (const ExprP<float>& arg0, const ExprP<float>& arg1) in operator -()
3770 ExprP<float> operator- (const ExprP<float>& arg0) in operator -()
3775 ExprP<float> operator* (const ExprP<float>& arg0, const ExprP<float>& arg1) in operator *()
3780 ExprP<float> operator/ (const ExprP<float>& arg0, const ExprP<float>& arg1) in operator /()
3924 ExprP<Vector<float, Size> > operator*(const ExprP<Vector<float, Size> >& arg0, in operator *()
3925 const ExprP<Vector<float, Size> >& arg1) in operator *()
3931 ExprP<Vector<float, Size> > operator*(const ExprP<Vector<float, Size> >& arg0, in operator *()
3932 const ExprP<float>& arg1) in operator *()
3938 ExprP<Vector<float, Size> > operator/(const ExprP<Vector<float, Size> >& arg0, in operator /()
3939 const ExprP<float>& arg1) in operator /()
3945 ExprP<Vector<float, Size> > operator-(const ExprP<Vector<float, Size> >& arg0) in operator -()
3951 ExprP<Vector<float, Size> > operator-(const ExprP<Vector<float, Size> >& arg0, in operator -()
3952 const ExprP<Vector<float, Size> >& arg1) in operator -()
3958 ExprP<Matrix<float, LeftRows, RightCols> >
3959 operator* (const ExprP<Matrix<float, LeftRows, Middle> >& left, in operator *()
3960 const ExprP<Matrix<float, Middle, RightCols> >& right) in operator *()
3966 ExprP<Vector<float, Rows> > operator* (const ExprP<Vector<float, Cols> >& left, in operator *()
3967 const ExprP<Matrix<float, Rows, Cols> >& right) in operator *()
3973 ExprP<Vector<float, Cols> > operator* (const ExprP<Matrix<float, Rows, Cols> >& left, in operator *()
3974 const ExprP<Vector<float, Rows> >& right) in operator *()
3980 ExprP<Matrix<float, Rows, Cols> > operator* (const ExprP<Matrix<float, Rows, Cols> >& left, in operator *()
3981 const ExprP<float>& right) in operator *()
3987 ExprP<Matrix<float, Rows, Cols> > operator+ (const ExprP<Matrix<float, Rows, Cols> >& left, in operator +()
3988 const ExprP<Matrix<float, Rows, Cols> >& right) in operator +()
3994 ExprP<Matrix<float, Rows, Cols> > operator- (const ExprP<Matrix<float, Rows, Cols> >& mat) in operator -()
4886 ExprP<Ret> expr = applyVar(m_func, in runTest()
4944 ExprP<Ret> expr = applyVar(m_func, in runTest()