{
"cells": [
{
"cell_type": "code",
"execution_count": 33,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Timing: true\n"
]
},
"execution_count": 33,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"text/html": [
"Took 0ms"
]
},
"execution_count": 33,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
":timing\n",
":clear"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Internals debugging: true"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"text/html": [
"Took 0ms"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
":internal_debug"
]
},
{
"cell_type": "code",
"execution_count": 34,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"Took 1217ms"
]
},
"execution_count": 34,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
":dep ndarray = \"0.14\""
]
},
{
"cell_type": "code",
"execution_count": 38,
"metadata": {},
"outputs": [
{
"ename": "Error",
"evalue": "error: failed to select a version for the requirement `showata = \"^0.3.2\"`\ncandidate versions found which didn't match: 0.3.1, 0.3.0, 0.2.0, ...\nlocation searched: crates.io index",
"output_type": "error",
"traceback": [
":dep showata = { version = \"0.3.2\", features=[\"show_ndarray\"]}",
"\u001b[91m ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m \u001b[94m\u001b[0m",
"error: failed to select a version for the requirement `showata = \"^0.3.2\"`\ncandidate versions found which didn't match: 0.3.1, 0.3.0, 0.2.0, ...\nlocation searched: crates.io index"
]
}
],
"source": [
":dep showata = { version = \"0.3.2\", features=[\"show_ndarray\"]}\n",
"//:dep showata = { version = \"0.3.2-dev\", features=[\"show_ndarray\"], path=\"/home/david/src/github.com/procyon-rs/showata\"}"
]
},
{
"cell_type": "code",
"execution_count": 36,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"
"
],
"text/plain": [
"Ok(())"
]
},
"execution_count": 36,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"text/html": [
"Took 2383ms"
]
},
"execution_count": 36,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"use ndarray::Array1;\n",
"use showata::Showable;\n",
"\n",
"let m: Array1 = Array1::::zeros(3);\n",
"m.show()"
]
},
{
"cell_type": "code",
"execution_count": 37,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
" | 0 | 1 | 2 | 3 |
---|
0 | 0.0 | 0.0 | 0.0 | 0.0 |
---|
1 | 0.0 | 0.0 | 0.0 | 0.0 |
---|
2 | 0.0 | 0.0 | 0.0 | 0.0 |
---|
"
]
},
"execution_count": 37,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"text/html": [
"Took 514ms"
]
},
"execution_count": 37,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"use ndarray::Array2;\n",
"let m: Array2 = Array2::::zeros((3, 4));\n",
"m"
]
},
{
"cell_type": "code",
"execution_count": 39,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
""
]
},
"execution_count": 39,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"text/html": [
"Took 537ms"
]
},
"execution_count": 39,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"Array2::::zeros((3, 1))"
]
},
{
"cell_type": "code",
"execution_count": 40,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
""
]
},
"execution_count": 40,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"text/html": [
"Took 370ms"
]
},
"execution_count": 40,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"Array2::::zeros((1, 3))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Rust",
"language": "rust",
"name": "rust"
},
"language_info": {
"codemirror_mode": "rust",
"file_extension": ".rs",
"mimetype": "text/rust",
"name": "Rust",
"pygment_lexer": "rust",
"version": ""
}
},
"nbformat": 4,
"nbformat_minor": 2
}