Skip to content

Commit 2040369

Browse files
committed
Drop impl AllocatedArray for Array1
1 parent 2984b24 commit 2040369

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/layout.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -121,31 +121,7 @@ impl<A, S> AllocatedArrayMut for ArrayBase<S, Ix2>
121121
}
122122
}
123123

124-
impl<A, S> AllocatedArray for ArrayBase<S, Ix1>
125-
where S: Data<Elem = A>
126-
{
127-
type Elem = A;
128-
129-
fn layout(&self) -> Result<Layout> {
130-
Ok(Layout::F((1, self.len() as i32)))
131-
}
132-
133-
fn square_layout(&self) -> Result<Layout> {
134-
Err(NotSquareError::new(1, self.len() as i32).into())
135-
}
136-
137-
fn as_allocated(&self) -> Result<&[A]> {
138-
Ok(self.as_slice_memory_order().ok_or(MemoryContError::new())?)
139-
}
140-
}
141124

142-
impl<A, S> AllocatedArrayMut for ArrayBase<S, Ix1>
143-
where S: DataMut<Elem = A>
144-
{
145-
fn as_allocated_mut(&mut self) -> Result<&mut [A]> {
146-
Ok(self.as_slice_memory_order_mut().ok_or(MemoryContError::new())?)
147-
}
148-
}
149125

150126

151127
pub fn reconstruct<A, S>(l: Layout, a: Vec<A>) -> Result<ArrayBase<S, Ix2>>

0 commit comments

Comments
 (0)