Tensor.CreateGeometricRange<T> Method

Constructs a new tensor with elements from the specified range.

Definition

Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.0
C#
public static Tensor<T> CreateGeometricRange<T>(
	T start,
	T stop,
	int steps,
	bool endPoint = true,
	ArrayMutability mutability = ArrayMutability.MutableValues
)

Parameters

start  T
The first value in the range.
stop  T
The upper bound for the range.
steps  Int32
The number of values.
endPoint  Boolean  (Optional)
Indicates whether stop is included in the range.
mutability  ArrayMutability  (Optional)
Optional. Specifies how the tensor's values may be changed. The default is mutable values.

Type Parameters

T
The type of the elements of the tensor.

Return Value

Tensor<T>
A DenseTensor whose values are a geometric series from start to stop.

Exceptions

ArgumentOutOfRangeExceptionsteps is less than zero.

See Also