public Memory.IEncodedArray <Single> AsScalarArray() { if (!_Sparse.HasValue) { return(_MemoryAccessor.AsScalarArray()); } return(MemoryAccessor.CreateScalarSparseArray(_MemoryAccessor, _Sparse.Value.Key, _Sparse.Value.Value)); }
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)); }