Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

[Program]: Write a Swift program to find the cofactor of a matrix #1742

Closed
Tracked by #1723
harshraj8843 opened this issue Oct 8, 2022 · 1 comment · Fixed by #5638
Closed
Tracked by #1723

[Program]: Write a Swift program to find the cofactor of a matrix #1742

harshraj8843 opened this issue Oct 8, 2022 · 1 comment · Fixed by #5638
Assignees
Labels
closed closed issues/PRs good first issue Good for newcomers program Swift swift related

Comments

@harshraj8843
Copy link
Contributor

harshraj8843 commented Oct 8, 2022

Description

Write a Swift program to find the cofactor of a matrix

The cofactor of an element aij of a square matrix A is the determinant of the minor of A obtained by deleting the ith row and jth column of A. The cofactor of a matrix A is the matrix of cofactors of A.

Input  :
1 2 3
4 5 6
7 8 9

Output :
[[-3, 6, -3], [6, -12, 6], [-3, 6, -3]]
How to contribute
  • Save the solution in program/program/find-the-cofactor-of-a-matrix/program/FindTheCofactorOfAMatrix.swift file
@harshraj8843 harshraj8843 added good first issue Good for newcomers Swift swift related labels Oct 8, 2022
@harshraj8843 harshraj8843 transferred this issue from codinasion/codinasion May 28, 2023
@harshraj8843 harshraj8843 changed the title Write a Swift program to find the cofactor of a matrix [Program]: Write a Swift program to find the cofactor of a matrix May 30, 2023
@AMiracle-creator
Copy link
Contributor

!assign

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
closed closed issues/PRs good first issue Good for newcomers program Swift swift related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants