当前位置: 首页>>代码示例>>C++>>正文


C++ Directory::GetSubDirectory方法代码示例

本文整理汇总了C++中Directory::GetSubDirectory方法的典型用法代码示例。如果您正苦于以下问题:C++ Directory::GetSubDirectory方法的具体用法?C++ Directory::GetSubDirectory怎么用?C++ Directory::GetSubDirectory使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Directory的用法示例。


在下文中一共展示了Directory::GetSubDirectory方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: AddTests2

void AddTests2 (Directory &parent)
{
    Directory &dir = parent.GetSubDirectory("MultivariatePolynomial");

    // the reason all the different combinations are enumerated by hand is
    // so that this source file can be easily broken into several source
    // files, reducing the compilation resources required and allowing
    // parallel compilation.

    // // add_particular_tests_for_scalar<Tenh::Sint8>(dir);
    // // add_particular_tests_for_scalar<Tenh::Uint32>(dir);
    // // add_particular_tests_for_scalar<Tenh::Sint64>(dir);

    // TODO: re-add tests for integral types once integral types are working

    add_particular_tests<complex<float>,1,1>(dir);
    add_particular_tests<complex<float>,1,2>(dir);
    add_particular_tests<complex<float>,1,3>(dir);
    add_particular_tests<complex<float>,2,1>(dir);
    add_particular_tests<complex<float>,2,2>(dir);
    add_particular_tests<complex<float>,2,3>(dir);
    add_particular_tests<complex<float>,3,1>(dir);
    add_particular_tests<complex<float>,3,2>(dir);
    add_particular_tests<complex<float>,3,3>(dir);
}
开发者ID:GabrielHare,项目名称:tensorheaven,代码行数:25,代码来源:test_multivariatepolynomials2.cpp

示例2: AddTests

void AddTests (Directory &parent)
{
    Directory &dir = parent.GetSubDirectory("dimindex");

    LVD_ADD_TEST_CASE_FUNCTION(dir, test_Reindex_e, RESULT_NO_ERROR);
    LVD_ADD_TEST_CASE_FUNCTION(dir, test_induced_Typle_Reindex_e, RESULT_NO_ERROR);
    LVD_ADD_TEST_CASE_FUNCTION(dir, test_reindexed, RESULT_NO_ERROR);
}
开发者ID:GabrielHare,项目名称:tensorheaven,代码行数:8,代码来源:test_dimindex.cpp

示例3: AddTests4

void AddTests4 (Directory &parent)
{
    {
        Directory &dir = parent.GetSubDirectory("Vector");
        add_particular_tests_for_scalar_Vec<Sint32>(dir);
        add_particular_tests_for_scalar_Vec<Uint32>(dir);
        add_particular_tests_for_scalar_Vec<Sint64>(dir);
        add_particular_tests_for_scalar_Vec<Uint64>(dir);
    }
}
开发者ID:GabrielHare,项目名称:tensorheaven,代码行数:10,代码来源:test_basic_vector4.cpp

示例4: AddTests3

void AddTests3 (Directory &parent)
{
    Directory &dir = parent.GetSubDirectory("linearembedding");

    typedef float Scalar;

    typedef Tenh::BasedVectorSpace_c<Tenh::VectorSpace_c<Tenh::RealField,1,Tenh::Generic>,Tenh::Basis_c<Tenh::Generic>> B1;
    typedef Tenh::BasedVectorSpace_c<Tenh::VectorSpace_c<Tenh::RealField,2,Tenh::Generic>,Tenh::Basis_c<Tenh::Generic>> B2;
    typedef Tenh::BasedVectorSpace_c<Tenh::VectorSpace_c<Tenh::RealField,3,Tenh::Generic>,Tenh::Basis_c<Tenh::Generic>> B3;
    typedef Tenh::BasedVectorSpace_c<Tenh::VectorSpace_c<Tenh::RealField,4,Tenh::Generic>,Tenh::Basis_c<Tenh::Generic>> B4;
    typedef Tenh::BasedVectorSpace_c<Tenh::VectorSpace_c<Tenh::RealField,5,Tenh::Generic>,Tenh::Basis_c<Tenh::Generic>> B5;

    add_checks_for_two_spaces<B3,B1,double>(dir);
    add_checks_for_two_spaces<B3,B2,double>(dir);
    add_checks_for_two_spaces<B3,B4,double>(dir);
    add_checks_for_two_spaces<B3,B5,double>(dir);
}
开发者ID:GabrielHare,项目名称:tensorheaven,代码行数:17,代码来源:test_linearembedding3.cpp

示例5: AddTests5

void AddTests5 (Directory &parent)
{
    Directory &dir = parent.GetSubDirectory("MultivariatePolynomial");

    // the reason all the different combinations are enumerated by hand is
    // so that this source file can be easily broken into several source
    // files, reducing the compilation resources required and allowing
    // parallel compilation.

    // // add_particular_tests_for_scalar<Tenh::Sint8>(dir);
    // // add_particular_tests_for_scalar<Tenh::Uint32>(dir);
    // // add_particular_tests_for_scalar<Tenh::Sint64>(dir);

    // TODO: re-add tests for integral types once integral types are working

    {
        static Uint32 const DIM = 3;
        typedef Tenh::VectorSpace_c<Tenh::RealField,DIM,Tenh::Generic> VectorSpace;
        typedef Tenh::BasedVectorSpace_c<VectorSpace,Tenh::Basis_c<Tenh::Generic>> BasedVectorSpace;
        add_addition_tests<double,BasedVectorSpace>(dir);
        add_multiplication_tests<double,BasedVectorSpace>(dir);
    }
}
开发者ID:GabrielHare,项目名称:tensorheaven,代码行数:23,代码来源:test_multivariatepolynomials5.cpp


注:本文中的Directory::GetSubDirectory方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。