29 references to FlattenedLength
System.Numerics.Tensors (29)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (10)
367public nint FlattenedLength => _shape.FlattenedLength; 403left._shape.FlattenedLength == right._shape.FlattenedLength && 504if (_shape.FlattenedLength != 0) ret = ref _reference; 629public override string ToString() => $"System.Numerics.Tensors.ReadOnlyTensorSpan<{typeof(T).Name}>[{_shape.FlattenedLength}]"; 735if (destination.Length < _shape.FlattenedLength) 752while (copiedValues < _shape.FlattenedLength) 772if (destination.Length < _shape.FlattenedLength) 775if (_shape.FlattenedLength == 0) 793while (copiedValues < _shape.FlattenedLength)
System\Numerics\Tensors\netcore\TensorExtensions.cs (8)
6809ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref input._reference, (int)input._shape.FlattenedLength); 6829ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref left._reference, (int)left._shape.FlattenedLength); 6830ReadOnlySpan<T> rspan = MemoryMarshal.CreateSpan(ref right._reference, (int)right._shape.FlattenedLength); 6859if (destination._shape._memoryLength < input._shape.FlattenedLength) 6871inputSpan = MemoryMarshal.CreateSpan(ref input._reference, (int)input._shape.FlattenedLength); 6872destinationSpan = MemoryMarshal.CreateSpan(ref slicedDestination._reference, (int)slicedDestination._shape.FlattenedLength); 6912if (destination._shape._memoryLength < input._shape.FlattenedLength) 6964if (destination._shape._memoryLength < input._shape.FlattenedLength)
System\Numerics\Tensors\netcore\TensorShape.cs (1)
64public bool IsEmpty => FlattenedLength == 0;
System\Numerics\Tensors\netcore\TensorSpan.cs (10)
375public nint FlattenedLength => _shape.FlattenedLength; 411left._shape.FlattenedLength == right._shape.FlattenedLength && 498if (_shape.FlattenedLength != 0) ret = ref _reference; 523while (clearedValues < _shape.FlattenedLength) 664public override string ToString() => $"System.Numerics.Tensors.TensorSpan<{typeof(T).Name}>[{_shape.FlattenedLength}]"; 772if (destination.Length <= _shape.FlattenedLength) 786if (destination.Length < _shape.FlattenedLength) 789if (_shape.FlattenedLength == 0) 807while (copiedValues < _shape.FlattenedLength)