Ejemplo n.º 1
0
        /// <summary>インデクス</summary>
        public static Tensor Index(Shape shape, int axis)
        {
            Tensor y = new Tensor(shape);

            Operator ope = new Operators.ArrayManipulation.Index(shape, axis);

            ope.Execute(y);

            return(y);
        }
Ejemplo n.º 2
0
 /// <summary>コンストラクタ</summary>
 public Index(Tensor tensor, int axis)
     : base(tensor)
 {
     this.generator = new Operators.ArrayManipulation.Index(tensor.Shape, axis);
 }