KIDS  ver-0.0.1
KIDS : Kernel Integrated Dynamics Simulator
Loading...
Searching...
No Matches
Shape.h File Reference

Declaration of the Shape class. More...

#include <cassert>
#include <iostream>
#include <sstream>
#include <vector>
Include dependency graph for Shape.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PROJECT_NS::Shape
 Shape class provide information about of a Tensor's shape. More...
 

Namespaces

namespace  PROJECT_NS
 < http://warp.povusers.org/FunctionParser/fparser.html
 

Typedefs

using PROJECT_NS::Basic_Dimen = std::size_t
 
using PROJECT_NS::Basic_Shape = std::vector<std::size_t>
 

Detailed Description

Declaration of the Shape class.

This file provides the declaration of the Shape class. It serves as contoller for the shape of tensors.

It provides both static shape container std::vector<std::size_t>, as well as dynamic shape container std::vector<std::size_t*>.

Author
Xin He
Date
2024-03
Version
1.0
Todo
support dynamic shape in a more friendly approach (reduce the time cost)
revision:
Date Description
2024-03-29 initial version. Extract Shape class from the file DataSet.h. Make Shape suitable for dynamic dimensions.

Definition in file Shape.h.