# \#square-matrix

**URL:** https://verificationacademy.com/forums/tag/square-matrix/7925.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [Square matrix of size odd number and no duplicate max element in rows](https://verificationacademy.com/forums/t/square-matrix-of-size-odd-number-and-no-duplicate-max-element-in-rows/39543)

<div class="topic-metadata">

**Author:** [@dve12](https://verificationacademy.com/forums/u/dve12)\
**Replies:** 4\
**Last updated:** [June 3, 2024, 12:51pm UTC](https://verificationacademy.com/forums/t/square-matrix-of-size-odd-number-and-no-duplicate-max-element-in-rows/39543 "2024-06-03T12:51:28Z")

</div>

Hi, I tried below code for below spec and seems matrix\[i\].max() is not supported. May i know how to implement this in any alternate way. //square matrix with odd number size //each row should have only one max element…

---

## [Generate NXN Matrix with following rules](https://verificationacademy.com/forums/t/generate-nxn-matrix-with-following-rules/41578)

<div class="topic-metadata">

**Author:** [@Bharat.manvani](https://verificationacademy.com/forums/u/Bharat.manvani)\
**Replies:** 2\
**Last updated:** [April 26, 2023, 4:10pm UTC](https://verificationacademy.com/forums/t/generate-nxn-matrix-with-following-rules/41578 "2023-04-26T16:10:32Z")

</div>

Generate NXN Matrix must following rules sum of 1st raw is 0. sum of 1st column is 0. sum of diagonal is 0. //\* code constraint cons1 {foreach(dyn\[i,j\]) { (dyn\[0\]\[j\]) -\> …
