您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ DefaultGrid函数代码示例

51自学网 2021-06-01 20:26:05
  C++
这篇教程C++ DefaultGrid函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中DefaultGrid函数的典型用法代码示例。如果您正苦于以下问题:C++ DefaultGrid函数的具体用法?C++ DefaultGrid怎么用?C++ DefaultGrid使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

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

示例1: DefaultGrid

namespace map {DefaultGrid const GridRepo::mDefault = DefaultGrid();GridRepo::GridRepo()    : Repository<IGrid>( mDefault ){    int32_t id = AutoId( "absolute" );    mElements.insert( id, new AbsoluteGrid( AutoId( "absolute" ) ) );    id = AutoId( "matrix" );    mElements.insert( id, new MatrixGrid( AutoId( "matrix" ) ) );}void DefaultGrid::Update( double DeltaTime ){}DefaultGrid::DefaultGrid()    : IGrid( -1 ){}} // namespace map
开发者ID:HalalUr,项目名称:Reaping2,代码行数:26,


示例2: DistMatrix

// entire process grid if and only if the dimensions of the process grid// are coprime.template<typename T>class DistMatrix<T,STAR,MD> : public AbstractDistMatrix<T>{public:    // Typedefs    // ========    typedef AbstractDistMatrix<T> absType;    typedef DistMatrix<T,STAR,MD> type;    // Constructors and destructors    // ============================    // Create a 0 x 0 distributed matrix    DistMatrix( const El::Grid& g=DefaultGrid(), int root=0 );    // Create a height x width distributed matrix    DistMatrix    ( Int height, Int width, const El::Grid& g=DefaultGrid(), int root=0 );    // Create a copy of distributed matrix A    DistMatrix( const type& A );    DistMatrix( const absType& A );    template<Dist U,Dist V> DistMatrix( const DistMatrix<T,U,V>& A );    template<Dist U,Dist V> DistMatrix( const BlockDistMatrix<T,U,V>& A );    // Move constructor    DistMatrix( type&& A ) EL_NOEXCEPT;    ~DistMatrix();    DistMatrix<T,STAR,MD>* Construct    ( const El::Grid& g, int root ) const override;    DistMatrix<T,MD,STAR>* ConstructTranspose
开发者ID:jakebolewski,项目名称:Elemental,代码行数:31,


示例3: DistMatrix

#ifndef ELEM_CORE_DISTMATRIX_VC_STAR_DECL_HPP#define ELEM_CORE_DISTMATRIX_VC_STAR_DECL_HPPnamespace elem {// Partial specialization to A[VC,* ].//// The columns of these distributed matrices are spread throughout the // process grid in a column-major fashion, while the rows are not // distributed.template<typename T>class DistMatrix<T,VC,STAR> : public AbstractDistMatrix<T>{public:    // Create a 0 x 0 distributed matrix    DistMatrix( const elem::Grid& g=DefaultGrid() );    // Create a height x width distributed matrix    DistMatrix( Int height, Int width, const elem::Grid& g=DefaultGrid() );    // Create a height x width distributed matrix with specified alignments    DistMatrix    ( Int height, Int width, Int colAlignment, const elem::Grid& g );    // Create a height x width distributed matrix with specified alignments    // and leading dimension    DistMatrix    ( Int height, Int width,       Int colAlignment, Int ldim, const elem::Grid& g );    // View a constant distributed matrix's buffer
开发者ID:khalid-hasanov,项目名称:Elemental,代码行数:31,


示例4: BASE

    void UpdateRealPartOfDiagonal    ( BASE(T) alpha, const DistMatrix<BASE(T),UDiag,VDiag>& d, Int offset=0 );    void UpdateImagPartOfDiagonal    ( BASE(T) alpha, const DistMatrix<BASE(T),UDiag,VDiag>& d, Int offset=0 );#endif // ifndef SWIGprotected:    // Private constructors    // ====================    // Inherited constructors are part of C++11 but not yet widely supported.    //using AbstractDistMatrix<T>::AbstractDistMatrix;    // Create a 0 x 0 distributed matrix    GeneralDistMatrix( const elem::Grid& g=DefaultGrid(), Int root=0 );    // Diagonal helper routines    // ========================#ifndef SWIG    template<typename S,class Function>    void GetDiagonalHelper    ( DistMatrix<S,UDiag,VDiag>& d, Int offset, Function func ) const;    template<typename S,class Function>    void SetDiagonalHelper    ( const DistMatrix<S,UDiag,VDiag>& d, Int offset, Function func );#endif // ifndef SWIG    // Friend declarations    // ===================#ifndef SWIG
开发者ID:kyle-jhchen,项目名称:Elemental,代码行数:31,


示例5: AbstractDistMatrix

class AbstractDistMatrix{public:    // Typedefs    // ========    typedef AbstractDistMatrix<T> type;    // Constructors and destructors    // ============================    // Move constructor    AbstractDistMatrix( type&& A ) EL_NOEXCEPT;    virtual ~AbstractDistMatrix();    virtual AbstractDistMatrix<T>* Construct    ( const El::Grid& g=DefaultGrid(), Int root=0 ) const = 0;    virtual AbstractDistMatrix<T>* ConstructTranspose    ( const El::Grid& g=DefaultGrid(), Int root=0 ) const = 0;    virtual AbstractDistMatrix<T>* ConstructDiagonal    ( const El::Grid& g=DefaultGrid(), Int root=0 ) const = 0;    // TODO: ConstructPartialCol and friends?    // Assignment and reconfiguration    // ==============================    // Move assignment    type& operator=( type&& A );    void Empty();    void EmptyData();    void SetGrid( const El::Grid& grid );    void Resize( Int height, Int width );
开发者ID:v4m4,项目名称:Elemental,代码行数:31,


示例6: GlobalCol

    Int  GlobalCol( Int jLoc )   const override EL_NO_EXCEPT;    // Diagonal manipulation    // =====================    bool DiagonalAlignedWith    ( const El::DistData& d, Int offset=0 ) const override EL_NO_EXCEPT;    bool DiagonalAlignedWith    ( const El::ElementalData& d, Int offset=0 ) const EL_NO_EXCEPT;    int DiagonalRoot( Int offset=0 ) const override EL_NO_EXCEPT;    int DiagonalAlign( Int offset=0 ) const override EL_NO_EXCEPT;protected:    // Protected constructors    // ======================    // Create a 0 x 0 distributed matrix    ElementalMatrix( const El::Grid& g=DefaultGrid(), int root=0 );private:    // Exchange metadata with another matrix    // =====================================    void ShallowSwap( type& A );    template<typename S,Dist J,Dist K,DistWrap wrap> friend class DistMatrix;};template<typename T>void AssertConforming1x2( const ElementalMatrix<T>& AL, const ElementalMatrix<T>& AR );template<typename T>void AssertConforming2x1
开发者ID:andreasnoack,项目名称:Elemental,代码行数:31,


示例7: DiagonalRoot

    ( const El::BlockCyclicData& d, Int offset=0 ) const;    int DiagonalRoot( Int offset=0 ) const;    int DiagonalAlign( Int offset=0 ) const;protected:    // Member variables    // ================    // Process grid and distribution metadata    // --------------------------------------    Int blockHeight_, blockWidth_;    Int colCut_,   rowCut_;    // Private constructors    // ====================    BlockCyclicMatrix( const El::Grid& g=DefaultGrid(),  int root=0 );    BlockCyclicMatrix    ( const El::Grid& g, Int blockHeight, Int blockWidth, int root=0 );private:    Int NewLocalHeight( Int height ) const;    Int NewLocalWidth( Int width ) const;    Int NewLocalHeight_( Int height ) const EL_NO_EXCEPT;    Int NewLocalWidth_( Int width ) const EL_NO_EXCEPT;    // Exchange metadata with another matrix    // =====================================    void ShallowSwap( type& A );    template<typename S,Dist J,Dist K,DistWrap wrap> friend class DistMatrix;
开发者ID:bluehope,项目名称:Elemental,代码行数:31,


示例8:

 DistMatrix<T,MD,STAR>* ConstructDiagonal ( const El::Grid& g=DefaultGrid(), Int root=0 ) const override;
开发者ID:arbenson,项目名称:Elemental,代码行数:2,


示例9: BlockDistMatrix

{public:    // Typedefs    // ========    typedef AbstractBlockDistMatrix<T> absType;    typedef GeneralBlockDistMatrix<T,MC,MR> genType;    typedef BlockDistMatrix<T,MC,MR> type;    // Constructors and destructors    // ============================    // Inherited constructors are part of C++11 but not yet widely supported.    //using GeneralBlockDistMatrix<T,MC,MR>::GeneralBlockDistMatrix;    // Create a 0 x 0 distributed matrix with default (and unpinned) block size    BlockDistMatrix( const elem::Grid& g=DefaultGrid(), Int root=0 );    // Create a 0 x 0 distributed matrix with fixed block size    BlockDistMatrix    ( const elem::Grid& g, Int blockHeight, Int blockWidth, Int root=0 );    // Create a height x width distributed matrix with default block size    BlockDistMatrix    ( Int height, Int width, const elem::Grid& g=DefaultGrid(), Int root=0 );    // Create a height x width distributed matrix with fixed block size    BlockDistMatrix    ( Int height, Int width, const elem::Grid& g,      Int blockHeight, Int blockWidth, Int root=0 );    // Create a copy of distributed matrix A (redistributing if necessary)    BlockDistMatrix( const type& A );    template<Dist U,Dist V> BlockDistMatrix( const BlockDistMatrix<T,U,V>& A );    template<Dist U,Dist V> BlockDistMatrix( const DistMatrix<T,U,V>& A );    // Move constructor
开发者ID:SamKChang,项目名称:madness,代码行数:31,


示例10:

 BlockDistMatrix<T,VC,STAR>* Construct ( const El::Grid& g=DefaultGrid(), Int root=0 ) const override;
开发者ID:arbenson,项目名称:Elemental,代码行数:2,


示例11:

 BlockDistMatrix<T,STAR,VR>* ConstructTranspose ( const El::Grid& g=DefaultGrid(), Int root=0 ) const override;
开发者ID:arbenson,项目名称:Elemental,代码行数:2,



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


C++ DefaultRootWindow函数代码示例
C++ DefaultExtension函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。