@@ -13,6 +13,9 @@ public enum MLXLinalg {
1313 public enum NormKind : String , Sendable {
1414 /// Frobenius norm
1515 case fro
16+
17+ /// Nuclear norm, the sum of singular values
18+ case nuc
1619 }
1720
1821 /// Matrix or vector norm.
@@ -36,7 +39,7 @@ public enum MLXLinalg {
3639 /// -2 | smallest singular value | as below
3740 /// other | -- | sum(abs(x)**ord)**(1./ord)
3841 ///
39- /// > Nuclear norm and norms based on singular values are not yet implemented .
42+ /// Nuclear norm and norms based on singular values are implemented by the linalg backend .
4043 ///
4144 /// The Frobenius norm is given by G. H. Golub and C. F. Van Loan, *Matrix Computations*,
4245 /// Baltimore, MD, Johns Hopkins University Press, 1985, pg. 15
@@ -91,7 +94,7 @@ public enum MLXLinalg {
9194 /// -2 | smallest singular value | as below
9295 /// other | -- | sum(abs(x)**ord)**(1./ord)
9396 ///
94- /// > Nuclear norm and norms based on singular values are not yet implemented .
97+ /// Nuclear norm and norms based on singular values are implemented by the linalg backend .
9598 ///
9699 /// The Frobenius norm is given by G. H. Golub and C. F. Van Loan, *Matrix Computations*,
97100 /// Baltimore, MD, Johns Hopkins University Press, 1985, pg. 15
@@ -548,7 +551,7 @@ public enum MLXLinalg {
548551/// -2 | smallest singular value | as below
549552/// other | -- | sum(abs(x)**ord)**(1./ord)
550553///
551- /// > Nuclear norm and norms based on singular values are not yet implemented .
554+ /// Nuclear norm and norms based on singular values are implemented by the linalg backend .
552555///
553556/// The Frobenius norm is given by G. H. Golub and C. F. Van Loan, *Matrix Computations*,
554557/// Baltimore, MD, Johns Hopkins University Press, 1985, pg. 15
@@ -597,7 +600,7 @@ public func norm(
597600/// -2 | smallest singular value | as below
598601/// other | -- | sum(abs(x)**ord)**(1./ord)
599602///
600- /// > Nuclear norm and norms based on singular values are not yet implemented .
603+ /// Nuclear norm and norms based on singular values are implemented by the linalg backend .
601604///
602605/// The Frobenius norm is given by G. H. Golub and C. F. Van Loan, *Matrix Computations*,
603606/// Baltimore, MD, Johns Hopkins University Press, 1985, pg. 15
0 commit comments