Tensor<T>.ITensor<Tensor<T>,T>.CreateUninitialized Method

Definition

Overloads

ITensor<Tensor<T>,T>.CreateUninitialized(ReadOnlySpan<IntPtr>, Boolean)

Creates a Tensor<T> and does not initialize it. If pinned is true, the memory will be pinned.

ITensor<Tensor<T>,T>.CreateUninitialized(ReadOnlySpan<IntPtr>, ReadOnlySpan<IntPtr>, Boolean)

Creates a Tensor<T> and does not initialize it. If pinned is true, the memory will be pinned.

ITensor<Tensor<T>,T>.CreateUninitialized(ReadOnlySpan<IntPtr>, Boolean)

Source:
Tensor.cs
Source:
Tensor.cs

Creates a Tensor<T> and does not initialize it. If pinned is true, the memory will be pinned.

C#
static System.Numerics.Tensors.Tensor<T> ITensor<Tensor<T>,T>.CreateUninitialized(scoped ReadOnlySpan<IntPtr> lengths, bool pinned);

Parameters

lengths

ReadOnlySpan<IntPtr>

A ReadOnlySpan<T> indicating the lengths of each dimension.

pinned
Boolean

A Boolean whether the underlying data should be pinned or not.

Returns

Implements

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)

ITensor<Tensor<T>,T>.CreateUninitialized(ReadOnlySpan<IntPtr>, ReadOnlySpan<IntPtr>, Boolean)

Source:
Tensor.cs
Source:
Tensor.cs

Creates a Tensor<T> and does not initialize it. If pinned is true, the memory will be pinned.

C#
static System.Numerics.Tensors.Tensor<T> ITensor<Tensor<T>,T>.CreateUninitialized(scoped ReadOnlySpan<IntPtr> lengths, scoped ReadOnlySpan<IntPtr> strides, bool pinned);

Parameters

lengths

ReadOnlySpan<IntPtr>

A ReadOnlySpan<T> indicating the lengths of each dimension.

strides

ReadOnlySpan<IntPtr>

A ReadOnlySpan<T> indicating the strides of each dimension.

pinned
Boolean

A Boolean whether the underlying data should be pinned or not.

Returns

Implements

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)