TypeTensor - v0.1.0
    Preparing search index...

    Class RuntimeDType<T>

    Runtime representation of a DType with validation and metadata This class provides the bridge between compile-time branded types and runtime type checking and validation.

    Type Parameters

    Index

    Constructors

    Properties

    byteSize: number
    isInteger: boolean
    jsType: "number" | "bigint" | "boolean"
    maxValue: number | bigint
    minValue: number | bigint
    name: T["__dtype"]
    signed: boolean
    typedArrayConstructor: TypedArrayConstructor

    Methods

    • Get information about this DType for debugging

      Returns {
          byteSize: number;
          isInteger: boolean;
          jsType: string;
          maxValue: number | bigint;
          minValue: number | bigint;
          name: string;
          signed: boolean;
          typedArrayName: string;
      }

    • JSON representation for serialization

      Returns { byteSize: number; isInteger: boolean; name: string; signed: boolean }