InverseToon
0.1
|
Norm functions. More...
Functions | |
def | isVector |
True if x is a vector. More... | |
def | isMatrix |
True if x is a matrix. More... | |
def | normalizeVector |
Normalize vector. More... | |
def | normalizeVectors |
Normalize vectors (n x m matrix). More... | |
def | normVectors |
Norm of vectors (n x m matrix). More... | |
def | l2NormVectors |
L2 norm of vectors (n x m matrix). More... | |
Norm functions.
def inversetoon.np.norm.isMatrix | ( | x | ) |
True if x is a matrix.
def inversetoon.np.norm.isVector | ( | x | ) |
True if x is a vector.
def inversetoon.np.norm.l2NormVectors | ( | x | ) |
L2 norm of vectors (n x m matrix).
n x 1 vector: call np.square. n x m vectors: call np.einsum.
def inversetoon.np.norm.normalizeVector | ( | x | ) |
Normalize vector.
def inversetoon.np.norm.normalizeVectors | ( | x | ) |
Normalize vectors (n x m matrix).
def inversetoon.np.norm.normVectors | ( | x | ) |
Norm of vectors (n x m matrix).