GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • tensorstore
  • Tutorial
  • Indexing
  • API reference
  • V inf
  • C IndexDomain
  • C IndexTransform
  • M __call__
  • M __getitem__(transform)
  • M __getitem__(domain)
  • M __getitem__(expr)
  • M __getitem__(indices)
  • M oindex
  • M vindex

This view

  • Original page
  • New address

GeezerVison is showing google.github.io — tensorstore.IndexTransform.translate_to - TensorStore

tensorstore.IndexTransform.translate_to[self, origins: Iterable[int | None] | int | None] → IndexTransform

Returns a new view with origin translated to the specified origin.

This is equivalent to self[ts.d[:].translate_to[origins]].

Parameters:¶
origins: Iterable[int | None] | int | None¶

The new origin for each dimensions. May also be a scalar, e.g. 5, in which case the same origin is used for all dimensions. If None is specified for a given dimension, the origin of that dimension remains unchanged.

Raises:¶
  • IndexError – If the number origins does not match the number of dimensions.

  • IndexError – If any of the selected dimensions has a lower bound of -inf.

See also

  • tensorstore.DimExpression.translate_to

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.