Compare commits

...

3 Commits

Author SHA1 Message Date
davidrobert99 c827abed4c update blood_types 2 years ago
davidrobert99 4fcef1eed3 update notions 2 years ago
davidrobert99 8a8cb9e482 update lalgebra_vector 2 years ago
  1. 8
      subjects/blood_types/README.md
  2. 1
      subjects/lalgebra_scalar/README.md
  3. 5
      subjects/lalgebra_vector/README.md

8
subjects/blood_types/README.md

@ -8,7 +8,7 @@ Start by copying the data representation of the blood types:
- Create the enum `Antigen` that has 4 possibilities: A, B, O and AB And the enum `RhFactor` that has two possible values: Positive and Negative
- After, copy the struct `BloodType` that contains two fields with the names antigen and rh_factor
- After, create the struct `BloodType` that contains two fields with the names antigen and rh_factor
- To provide a simple way to create blood types implement the trait FromStr for BloodType (which will allow us to use the `parse` method and the associated function from_str, so we can do:
@ -53,12 +53,6 @@ use std::cmp::{Ord, Ordering};
use std::str::FromStr;
impl FromStr for Antigen {
}
impl FromStr for RhFactor {
}
impl Ord for BloodType {
}

1
subjects/lalgebra_scalar/README.md

@ -11,6 +11,7 @@ After finishing completing the declaration of the trait, implement the `Scalar`
### Notions
- [Module std::ops](https://doc.rust-lang.org/std/ops/index.html)
- [Module std::marker::Sized](https://doc.rust-lang.org/std/marker/trait.Sized.html)
### Expected Function (The signature must be completed)

5
subjects/lalgebra_vector/README.md

@ -10,9 +10,6 @@ The dot product between two vectors of different length it's not defined
Note: `Vector` must implement Debug, Clone, Eq, PartialEq.
#### Important
Note that in the addition of vector of the example the `Rhs` is not `Self`
### Expected Functions and Structure
@ -44,7 +41,7 @@ fn main() {
let vector_1: Vector<i64> = Vector(vec![1, 3, -5]);
let vector_2: Vector<i64> = Vector(vec![4, -2, -1]);
println!("{:?}", vector_1.dot(&vector_2));
println!("{:?}", vector_1 + &vector_2);
println!("{:?}", vector_1 + vector_2);
}
```

Loading…
Cancel
Save