public Shape(sShape shape) : this(rysyPINVOKE.new_Shape__SWIG_3(sShape.getCPtr(shape)), true) { if (rysyPINVOKE.SWIGPendingException.Pending) { throw rysyPINVOKE.SWIGPendingException.Retrieve(); } }
public void set(sShape shape) { rysyPINVOKE.Shape_set__SWIG_0(swigCPtr, sShape.getCPtr(shape)); if (rysyPINVOKE.SWIGPendingException.Pending) { throw rysyPINVOKE.SWIGPendingException.Retrieve(); } }
public static IShape MakeShape(string shapeType) { IShape shape = null; switch (shapeType.ToLower()) { case "i": shape = new iShape(); break; case "j": shape = new jShape(); break; case "l": shape = new lShape(); break; case "o": shape = new oShape(); break; case "s": shape = new sShape(); break; case "t": shape = new tShape(); break; case "z": shape = new zShape(); break; case "test": shape = new testShape(); break; default: throw new ArgumentException("Invalid shape name"); } return(shape); }
public sShape shape_struct() { sShape ret = new sShape(rysyPINVOKE.Tensor_shape_struct(swigCPtr), true); return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(sShape obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
public sShape get() { sShape ret = new sShape(rysyPINVOKE.Shape_get(swigCPtr), true); return(ret); }