/// <summary> /// Constructor for init data type /// internal storage is 1D with 1 element /// </summary> /// <param name="typeCode">Data type of elements</param> /// <param name="engine">The engine of this <see cref="NDArray"/></param> /// <remarks>This constructor does not call allocation/></remarks> protected internal NDArray(NPTypeCode typeCode, TensorEngine engine) { tensorEngine = engine; Storage = TensorEngine.GetStorage(typeCode); }
/// <summary> /// Constructor for init data type /// internal storage is 1D with 1 element /// </summary> /// <param name="dtype">Data type of elements</param> /// <param name="engine">The engine of this <see cref="NDArray"/></param> /// <remarks>This constructor does not call allocation/></remarks> protected internal NDArray(Type dtype, TensorEngine engine) { tensorEngine = engine; Storage = TensorEngine.GetStorage(dtype); }