@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class Qr extends Pointer
tensor
such that
tensor[..., :, :] = q[..., :, :] * r[..., :,:])
python
# a is a tensor.
# q is a tensor of orthonormal matrices.
# r is a tensor of upper triangular matrices.
q, r = qr(a)
q_full, r_full = qr(a, full_matrices=True)
Arguments:
* scope: A Scope object
* input: A tensor of shape [..., M, N]
whose inner-most 2 dimensions
form matrices of size [M, N]
. Let P
be the minimum of M
and N
.
Optional attributes (see Attrs
):
* full_matrices: If true, compute full-sized q
and r
. If false
(the default), compute only the leading P
columns of q
.
Returns:
* Output
q: Orthonormal basis for range of a
. If full_matrices
is False
then
shape is [..., M, P]
; if full_matrices
is True
then shape is
[..., M, M]
.
* Output
r: Triangular factor. If full_matrices
is False
then shape is
[..., P, N]
. If full_matrices
is True
then shape is [..., M, N]
.Modifier and Type | Class and Description |
---|---|
static class |
Qr.Attrs
Optional attribute setters for Qr
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Qr(Pointer p)
Pointer cast constructor.
|
Qr(Scope scope,
Input input) |
Qr(Scope scope,
Input input,
Qr.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
static Qr.Attrs |
FullMatrices(boolean x) |
Operation |
operation() |
Qr |
operation(Operation setter) |
Output |
q() |
Qr |
q(Output setter) |
Output |
r() |
Qr |
r(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
public Qr(Pointer p)
Pointer(Pointer)
.Copyright © 2022. All rights reserved.