Files
sbv2-api/crates/sbv2_bindings/src/style.rs
Googlefan 506ee4d883 refactor
2025-02-22 08:00:17 +00:00

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()
}
}