示例#1
0
        public Memory.IEncodedArray <Single> AsScalarArray()
        {
            if (!_Sparse.HasValue)
            {
                return(_MemoryAccessor.AsScalarArray());
            }

            return(MemoryAccessor.CreateScalarSparseArray(_MemoryAccessor, _Sparse.Value.Key, _Sparse.Value.Value));
        }
示例#2
0
        public IList <Single> AsScalarArray()
        {
            var memory = _GetMemoryAccessor();

            if (this._sparse == null)
            {
                return(memory.AsScalarArray());
            }

            var sparseKV = this._sparse._CreateMemoryAccessors(this);

            return(MemoryAccessor.CreateScalarSparseArray(memory, sparseKV.Key, sparseKV.Value));
        }