<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/SPARSE_NORM_TWO",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@EA@sparse_norm@SPARSE_NORM_TWO"
  },
  "title" : "SPARSE_NORM_TWO"
}
-->

# SPARSE_NORM_TWO

Norm Two

```
var SPARSE_NORM_TWO: sparse_norm { get }
```

## Discussion

|Matrix element wise|*sqrt( sumᵢ,ⱼ (A[i,j])² )*__                                                                                                                                                                  |
|-------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|Matrix operator    |Largest singular value of matrix, note that the operator ``doc://com.apple.accelerate/documentation/Accelerate/SPARSE_NORM_TWO`` is significantly more expensive than other norm operations.__|
|Vector element wise|*sqrt( sumᵢ (x[i])² )*__                                                                                                                                                                      |

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)