29 references to FlattenedLength
System.Numerics.Tensors (29)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (10)
384public nint FlattenedLength => _shape.FlattenedLength; 420left._shape.FlattenedLength == right._shape.FlattenedLength && 521if (_shape.FlattenedLength != 0) ret = ref _reference; 646public override string ToString() => $"System.Numerics.Tensors.ReadOnlyTensorSpan<{typeof(T).Name}>[{_shape.FlattenedLength}]"; 752if (destination.Length < _shape.FlattenedLength) 769while (copiedValues < _shape.FlattenedLength) 789if (destination.Length < _shape.FlattenedLength) 792if (_shape.FlattenedLength == 0) 810while (copiedValues < _shape.FlattenedLength)
System\Numerics\Tensors\netcore\TensorExtensions.cs (8)
6871ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref input._reference, (int)input._shape.FlattenedLength); 6891ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref left._reference, (int)left._shape.FlattenedLength); 6892ReadOnlySpan<T> rspan = MemoryMarshal.CreateSpan(ref right._reference, (int)right._shape.FlattenedLength); 6921if (destination._shape._memoryLength < input._shape.FlattenedLength) 6933inputSpan = MemoryMarshal.CreateSpan(ref input._reference, (int)input._shape.FlattenedLength); 6934destinationSpan = MemoryMarshal.CreateSpan(ref slicedDestination._reference, (int)slicedDestination._shape.FlattenedLength); 6974if (destination._shape._memoryLength < input._shape.FlattenedLength) 7026if (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)
390public nint FlattenedLength => _shape.FlattenedLength; 426left._shape.FlattenedLength == right._shape.FlattenedLength && 513if (_shape.FlattenedLength != 0) ret = ref _reference; 538while (clearedValues < _shape.FlattenedLength) 679public override string ToString() => $"System.Numerics.Tensors.TensorSpan<{typeof(T).Name}>[{_shape.FlattenedLength}]"; 787if (destination.Length <= _shape.FlattenedLength) 801if (destination.Length < _shape.FlattenedLength) 804if (_shape.FlattenedLength == 0) 822while (copiedValues < _shape.FlattenedLength)