@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class Lu extends Pointer
[..., M, M]
whose inner-most 2 dimensions
form square matrices.
The input has to be invertible.
The output consists of two tensors LU and P containing the LU decomposition
of all input submatrices [..., :, :]
. LU encodes the lower triangular and
upper triangular factors.
For each input submatrix of shape [M, M]
, L is a lower triangular matrix of
shape [M, M]
with unit diagonal whose entries correspond to the strictly lower
triangular part of LU. U is a upper triangular matrix of shape [M, M]
whose
entries correspond to the upper triangular part, including the diagonal, of LU.
P represents a permutation matrix encoded as a list of indices each between 0
and M-1
, inclusive. If P_mat denotes the permutation matrix corresponding to
P, then the L, U and P satisfies P_mat * input = L * U.
Arguments:
* scope: A Scope object
* input: A tensor of shape [..., M, M]
whose inner-most 2 dimensions form matrices of
size [M, M]
.
Returns:
* Output
lu: A tensor of shape [..., M, M]
whose strictly lower triangular part denotes the
lower triangular factor L
with unit diagonal, and whose upper triangular part
denotes the upper triangular factor U
.
* Output
p: Permutation of the rows encoded as a list of indices in 0..M-1
. Shape is
[..., M]
.
\compatibility(scipy)
Similar to scipy.linalg.lu
, except the triangular factors L
and U
are
packed into a single tensor, the permutation is applied to input
instead of
the right hand side and the permutation P
is returned as a list of indices
instead of a permutation matrix.
\end_compatibilityModifier and Type | Class and Description |
---|---|
static class |
Lu.Attrs
Optional attribute setters for Lu
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Lu(Pointer p)
Pointer cast constructor.
|
Lu(Scope scope,
Input input) |
Lu(Scope scope,
Input input,
Lu.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Output |
lu() |
Lu |
lu(Output setter) |
Operation |
operation() |
Lu |
operation(Operation setter) |
static Lu.Attrs |
OutputIdxType(int x) |
Output |
p() |
Lu |
p(Output setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
Copyright © 2022. All rights reserved.