tf.keras.ops.vander
Stay organized with collections
Save and categorize content based on your preferences.
Generate a Vandermonde matrix.
tf.keras.ops.vander(
x, N=None, increasing=False
)
Args |
x
|
1D input tensor.
|
N
|
Number of columns. If None, N = len(x).
|
increasing
|
Order of powers. If True, powers increase left to right.
|
Returns |
Output tensor, Vandermonde matrix of shape (len(x), N).
|
Example:
import numpy as np
import keras
x = np.array([1, 2, 3, 5])
keras.ops.vander(x)
array([[ 1, 1, 1, 1],
[ 8, 4, 2, 1],
[ 27, 9, 3, 1],
[125, 25, 5, 1]])
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2026-10-31 UTC.
[null,null,["Last updated 2026-10-31 UTC."],[],[]]