1 Commits

Author SHA1 Message Date
Palash Tyagi
9e60d4ba71 Merge 9fcb1ea2cf into 0671790f0f 2025-05-01 01:14:11 +01:00
2 changed files with 0 additions and 20 deletions

View File

@@ -2,14 +2,9 @@ name: run-unit-tests
on: on:
pull_request: pull_request:
types: [review_requested, ready_for_review, synchronize, opened, reopened]
branches: branches:
- main - main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
run-unit-tests: run-unit-tests:
if: github.event.pull_request.draft == false if: github.event.pull_request.draft == false

View File

@@ -364,21 +364,6 @@ impl Not for Matrix<bool> {
} }
} }
// implement for &Matrix<bool>
impl<'a> Not for &'a Matrix<bool> {
type Output = Matrix<bool>;
fn not(self) -> Matrix<bool> {
// Invert each boolean element in the matrix
let data = self.data.iter().map(|&v| !v).collect();
Matrix {
rows: self.rows,
cols: self.cols,
data,
}
}
}
pub type FloatMatrix = Matrix<f64>; pub type FloatMatrix = Matrix<f64>;
pub type BoolMatrix = Matrix<bool>; pub type BoolMatrix = Matrix<bool>;
pub type IntMatrix = Matrix<i32>; pub type IntMatrix = Matrix<i32>;