mirror of
https://github.com/neodyland/sbv2-api.git
synced 2026-01-08 07:22:56 +00:00
20 lines
349 B
Rust
20 lines
349 B
Rust
use ndarray::Array1;
|
|
use pyo3::prelude::*;
|
|
|
|
/// StyleVector class
|
|
///
|
|
/// スタイルベクトルを表すクラス
|
|
#[pyclass]
|
|
#[derive(Clone)]
|
|
pub struct StyleVector(Array1<f32>);
|
|
|
|
impl StyleVector {
|
|
pub fn new(data: Array1<f32>) -> Self {
|
|
StyleVector(data)
|
|
}
|
|
|
|
pub fn get(&self) -> Array1<f32> {
|
|
self.0.clone()
|
|
}
|
|
}
|