Ejemplo n.º 1
0
 /// <summary>
 ///     Creates new NdArray object with entity object.
 /// </summary>
 /// <param name="entity"></param>
 internal RawNdArray(RawNdArrayImpl <T> entity)
     : base(entity)
 {
 }
Ejemplo n.º 2
0
        /// <summary>
        ///     Creates mutable <see cref="NdArray{T}"/> instance which has any shape.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="shape"> [<c>array.Length == shape.TotalLength</c>] </param>
        /// <returns></returns>
        public static MutableNdArray <T> CreateMutable <T>(IndexArray shape)
        {
            var entity = new RawNdArrayImpl <T>(shape);

            return(new MutableNdArray <T>(entity));
        }