tfmri.linalg.LinearOperatorFiniteDifference

class LinearOperatorFiniteDifference(domain_shape, axis=- 1, dtype=tf.float32, name='LinearOperatorFiniteDifference')[source]

Bases: tensorflow_mri.python.util.linalg_imaging.LinearOperator

Linear operator representing a finite difference matrix.

Parameters
  • domain_shape – A 1D tf.Tensor or a list of int. The domain shape of this linear operator.

  • axis

    An int. The axis along which the finite difference is taken. Defaults to -1.

  • dtype – A tf.dtypes.DType. The data type for this operator. Defaults to float32.

  • name – A str. A name for this operator.

Initialize the LinearOperator. (deprecated arguments)

Deprecated: SOME ARGUMENTS ARE DEPRECATED: (graph_parents). They will be removed in a future version. Instructions for updating: Do not pass graph_parents. They will no longer be used.

This is a private method for subclass use. Subclasses should copy-paste this ``__init__`` documentation.

Parameters
  • dtype – The type of the this LinearOperator. Arguments to matmul and solve will have to be this type.

  • graph_parents – (Deprecated) Python list of graph prerequisites of this LinearOperator Typically tensors that are passed during initialization

  • is_non_singular – Expect that this operator is non-singular.

  • is_self_adjoint – Expect that this operator is equal to its hermitian transpose. If dtype is real, this is equivalent to being symmetric.

  • is_positive_definite – Expect that this operator is positive definite, meaning the quadratic form x^H A x has positive real part for all nonzero x. Note that we do not require the operator to be self-adjoint to be positive-definite. See: https://en.wikipedia.org/wiki/Positive-definite_matrix#Extension_for_non-symmetric_matrices

  • is_square – Expect that this operator acts like square [batch] matrices.

  • name – A name for this LinearOperator.

  • parameters – Python dict of parameters used to instantiate this LinearOperator.

Raises
  • ValueError – If any member of graph_parents is None or not a Tensor.

  • ValueError – If hints are set incorrectly.