我想用任意大小的矩阵进行一些计算.简单的例子 - 使用两个矩阵NxM和MxK,使用任意元素,并将产品元素视为总和.
但我无法找到一种方法来进行这种符号计算,而无需将矩阵大小指定为整数.
matrix()想要整数,makelist()想要整数.
有没有办法在maxima中做这样的事情?还是CAS?
我正在尝试Read从u8切片创建一个特征对象,以便在murmur3包中使用,就像这样
fn main() {
let mut arr: [u8; 4] = [1, 2, 3, 4];
let mut slice: &mut [u8] = &mut arr;
let mut read: &mut std::io::Read = &mut slice;
}
Run Code Online (Sandbox Code Playgroud)
但我明白了
<anon>:4:42: 4:53 error: the trait `std::io::Read` is not implemented for the type `[u8]` [E0277]
<anon>:4 let mut read : & mut std::io::Read = & mut slice;
^~~~~~~~~~~
<anon>:4:42: 4:53 help: see the detailed explanation for E0277
<anon>:4:42: 4:53 help: the following implementations …Run Code Online (Sandbox Code Playgroud)