Tensor.CreateLogarithmicRange Method

Definition

Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.0

Overload List

CreateLogarithmicRange<T>(T, T, Int32, Boolean, ArrayMutability) Constructs a new tensor with elements from the specified range.
CreateLogarithmicRange<T>(T, T, Int32, Boolean, T, ArrayMutability) Constructs a new tensor with elements from the specified range.

CreateLogarithmicRange<T>(T, T, Int32, Boolean, ArrayMutability)

Constructs a new tensor with elements from the specified range.
C#
public static Tensor<T> CreateLogarithmicRange<T>(
	T start,
	T stop,
	int steps,
	bool endPoint = true,
	ArrayMutability mutability = ArrayMutability.MutableValues
)

Parameters

start  T
The first exponent value in the range.
stop  T
The upper bound for the exponent 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 10 raised to a range of powers from start to stop.

Exceptions

ArgumentOutOfRangeExceptionsteps is less than zero.

CreateLogarithmicRange<T>(T, T, Int32, Boolean, T, ArrayMutability)

Constructs a new tensor with elements from the specified range.
C#
public static Tensor<T> CreateLogarithmicRange<T>(
	T start,
	T stop,
	int steps,
	bool endPoint,
	T baseValue,
	ArrayMutability mutability = ArrayMutability.MutableValues
)

Parameters

start  T
The first exponent value in the range.
stop  T
The upper bound for the exponent range.
steps  Int32
The number of values.
endPoint  Boolean
Indicates whether stop is included in the range.
baseValue  T
The base for the numbers 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 baseValue raised to a range of powers from start to stop.

Exceptions

ArgumentOutOfRangeExceptionsteps is less than zero.

See Also